node-postgres icon indicating copy to clipboard operation
node-postgres copied to clipboard

fix: Connection timeout handling for native clients in connected state

Open maxbronnikov10 opened this issue 5 months ago • 3 comments

Now, when using the native client with a connection timeout, the pool could incorrectly destroy or end a client that was already connected, due to not distinguishing between connection states. This caused issues such as https://github.com/brianc/node-pg-native/issues/49, where a native client that had already established a connection could be forcefully closed if the connection callback was delayed past the timeout.

maxbronnikov10 avatar Jul 16 '25 22:07 maxbronnikov10

@brianc Hello! Sry for tag. Can u check PR pls?

maxbronnikov10 avatar Oct 13 '25 15:10 maxbronnikov10

or maybe @charmander can check pls?

maxbronnikov10 avatar Oct 13 '25 16:10 maxbronnikov10

@charmander @brianc Hello! Can u check PR pls

maxbronnikov10 avatar Nov 21 '25 23:11 maxbronnikov10