Skip to content

Fix wrong exception propagation on connection errors and channel binding failure#1679

Merged
tsegismont merged 1 commit into
eclipse-vertx:5.1from
tsegismont:backport-1676
Jun 22, 2026
Merged

Fix wrong exception propagation on connection errors and channel binding failure#1679
tsegismont merged 1 commit into
eclipse-vertx:5.1from
tsegismont:backport-1676

Conversation

@tsegismont

Copy link
Copy Markdown
Member

Backport #1676

…ing failure (eclipse-vertx#1676)

See eclipse-vertx#1672, eclipse-vertx#1674, eclipse-vertx#1675

Inflight commands should not fail with ClosedConnectionException but with the
actual error, e.g. a PgException reporting SQLSTATE 57P01 when
pg_terminate_backend kills a connection mid-flight.

When channel binding is required but SSL is not available, the PostgreSQL
protocol recommends immediately closing the connection. The
ChannelBindingException is now correctly reported to the caller rather than
being masked by a subsequent ClosedConnectionException.

Some portions of this content were created with the assistance of Claude Code.

Fixup

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont tsegismont merged commit c5794a6 into eclipse-vertx:5.1 Jun 22, 2026
18 checks passed
@tsegismont tsegismont deleted the backport-1676 branch June 22, 2026 09:05
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