Skip to content

Surface PostgreSQL ErrorResponse during SSL negotiation - #1346

Draft
aryansk wants to merge 1 commit into
MagicStack:masterfrom
aryansk:fix/tls-upgrade-error-response-1317
Draft

Surface PostgreSQL ErrorResponse during SSL negotiation#1346
aryansk wants to merge 1 commit into
MagicStack:masterfrom
aryansk:fix/tls-upgrade-error-response-1317

Conversation

@aryansk

@aryansk aryansk commented Aug 16, 2026

Copy link
Copy Markdown

Fixes #1317.

When a server replies to SSLRequest with a pre-auth E... error payload, preserve the server's diagnostic text in an asyncpg InterfaceError instead of replacing it with the generic rejected SSL upgrade message.

Includes a regression test for the simplified pre-auth error form described in the issue.

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.

TLSUpgradeProto.data_received hides PostgreSQL ErrorResponse behind generic 'rejected SSL upgrade' ConnectionError

1 participant