Skip to content

test(pg): temporary #3772 backend termination probe - #1

Closed
devtechedge wants to merge 3 commits into
masterfrom
probe/3772-pg-terminate-new
Closed

test(pg): temporary #3772 backend termination probe#1
devtechedge wants to merge 3 commits into
masterfrom
probe/3772-pg-terminate-new

Conversation

@devtechedge

Copy link
Copy Markdown
Owner

Temporary experiment only: exercise real PostgreSQL backend termination after an extended-protocol Sync for brianc#3772. This PR is for validation and should not be merged.

Connection.sync() was setting _ending=true on every extended-query Sync.
That flag is meant for disconnect (Terminate / end()), so after the first
parameterized query ECONNRESET and EPIPE were swallowed for the life of
the connection. Keep _ending only on end() and connect-timeout teardown.

Fixes brianc#3769
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.

1 participant