Skip to content

Close the socket when the PG server refuses SSL - #1766

Open
sharanggupta wants to merge 1 commit into
eclipse-vertx:masterfrom
sharanggupta:pg-ssl-refused-socket-closed
Open

sharanggupta wants to merge 1 commit into
eclipse-vertx:masterfrom
sharanggupta:pg-ssl-refused-socket-closed

Conversation

@sharanggupta

Copy link
Copy Markdown

With sslMode PREFER or REQUIRE against a server that answers 'N' to the SSL request, the socket stayed open until the server's authentication timeout, and PREFER then opened a second one. The socket is now closed when the server refuses SSL. The test counts open sockets through a proxy in front of the non-SSL test container.

With sslMode PREFER or REQUIRE against a server that answers 'N' to the SSL
request, the connection attempt failed but its socket stayed open, and the
server kept a backend waiting for a startup message until its
authentication timeout. PREFER then opened a second socket, so every such
connection left one dangling.

Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev>
Assisted-by: Anthropic Claude (claude-opus-5-5)
@vietj vietj added this to the 5.3.0 milestone Oct 29, 2026

This branch has not been deployed

No deployments
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