-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
connectionTimeoutMillis doesn't work #1390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
✅ small self contained steps to reproduce Thanks for the nice bug report! I'll look at this ASAP. |
@brianc, is this the intended behaviour of |
There is a bug with 7.x where the pooled client never closes, no matter what the connectionTimeoutMillis is set to. Even after calling done, the connection remains open indefinitely. This works fine with 6.1.0. We have reverted back to 6.1.0 until this is resolved because its causing connection leaks. |
@ghafran This issue is about |
@charmander thanks for drawing my attention back to this one. Got lost in the never-ending issue shuffle. I wanted |
This addresses [pg#1390](brianc/node-postgres#1390). Ensure connection timeout applies both for new connections and on an exhuasted pool. I also made the library return an error when passing a function as the first param to `pool.query` - previosuly this threw a sync type error.
* Add connection & query timeout if all clients are checked out This addresses [pg#1390](brianc/node-postgres#1390). Ensure connection timeout applies both for new connections and on an exhuasted pool. I also made the library return an error when passing a function as the first param to `pool.query` - previosuly this threw a sync type error. * Add pg-cursor to dev deps
@bydga - My apologies for the delay in responding here to the bug; I get a lot of issues and sometimes they slip off my radar...I've fixed it here. 👏 Please install the newest version of Thanks If you or your company benefit from node-postgres and have the means, please consider supporting my work on Patreon. |
Im trying to use the connTimeoutMilis feature (respond error when a connection from a pool cannot be obtained within specified limit) - and it doesnt work.
Here is a minimal example:
output:
and nothing more, no error thrown, no err callback being called..
versions:
The text was updated successfully, but these errors were encountered: