Skip to content

Fix TLS read loop error handling - #222

Closed
BreezeDelegate wants to merge 1 commit into
neondatabase:mainfrom
BreezeDelegate:fix/tls-read-loop-errors
Closed

BreezeDelegate wants to merge 1 commit into
neondatabase:mainfrom
BreezeDelegate:fix/tls-read-loop-errors

Conversation

@BreezeDelegate

Copy link
Copy Markdown

Handle rejected background TLS reads by emitting error and close on the socket instead of leaving the rejection unhandled.

Adds a regression test with a mocked TLS handshake/read loop and regenerates the published bundles.

Fixes #217

@jawj

jawj commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Many thanks for this. I've made equivalent changes in the branch I'm currently working on (see above). These should be available in v1.2 in the next few weeks.

@jawj jawj closed this Sep 25, 2026
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.

tlsReadLoop() is not awaited and has no .catch() — TLS read errors silently hang the pg client forever

2 participants