FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Surface PostgreSQL ErrorResponse during SSL negotiation by aryansk · Pull Request #1346 · MagicStack/asyncpg · GitHub

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 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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL