Skip to content

fix: Connection timeout handling for native clients in connected state#3512

Merged
brianc merged 1 commit intobrianc:masterfrom
maxbronnikov10:fix/native-client-connect-timeout
Feb 3, 2026
Merged

fix: Connection timeout handling for native clients in connected state#3512
brianc merged 1 commit intobrianc:masterfrom
maxbronnikov10:fix/native-client-connect-timeout

Conversation

@maxbronnikov10
Copy link
Contributor

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 brianc/node-pg-native#49, where a native client that had already established a connection could be forcefully closed if the connection callback was delayed past the timeout.

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 brianc/node-pg-native#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 maxbronnikov10 force-pushed the fix/native-client-connect-timeout branch from 5923484 to 8206f7a Compare July 16, 2025 22:09
@maxbronnikov10
Copy link
Contributor Author

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

@maxbronnikov10
Copy link
Contributor Author

or maybe @charmander can check pls?

@maxbronnikov10
Copy link
Contributor Author

@charmander @brianc Hello! Can u check PR pls

1 similar comment
@maxbronnikov10
Copy link
Contributor Author

@charmander @brianc Hello! Can u check PR pls

@brianc
Copy link
Owner

brianc commented Feb 3, 2026

Thanks! Super sorry I missed this. It looks good to me!

@brianc brianc merged commit f332f28 into brianc:master Feb 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants