Skip to content

fix: fail pipelined queries when the connection dies instead of hanging - #3736

Merged
brianc merged 1 commit into
brianc:masterfrom
nigrosimone:fix-pipeline-connection-loss
Aug 12, 2026
Merged

fix: fail pipelined queries when the connection dies instead of hanging#3736
brianc merged 1 commit into
brianc:masterfrom
nigrosimone:fix-pipeline-connection-loss

Conversation

@nigrosimone

@nigrosimone nigrosimone commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

When a pipelined batch is in flight and the connection goes away, the batch never call back, so every query queued behind it wait forever.

There is also a related bug in node-libpq, brianc/node-libpq#137 The fixes here are independent from that one, but both are needed to survive a lost connection.

@nigrosimone
nigrosimone marked this pull request as ready for review August 9, 2026 10:51
@nigrosimone nigrosimone changed the title Fail pipelined queries when the connection dies instead of hanging fix: fail pipelined queries when the connection dies instead of hanging Aug 10, 2026

@brianc brianc left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a bit confusing on first glance but the PR description and tests make it readable. :) thanks a ton!

@brianc
brianc merged commit c940d7c into brianc:master Aug 12, 2026
12 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