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

Add sslmode=allow support and fix =prefer retry by fantix · Pull Request #720 · MagicStack/asyncpg · GitHub

Add sslmode=allow support and fix =prefer retry - #720

Merged
fantix merged 2 commits into
MagicStack:masterfrom
fantix:t716-sslmode-allow
Mar 24, 2021
Merged

Add sslmode=allow support and fix =prefer retry#720
fantix merged 2 commits into
MagicStack:masterfrom
fantix:t716-sslmode-allow

Conversation

fantix commented Mar 22, 2021
edited
Loading

Copy link
Copy Markdown
Member

We didn't really retry the connection without SSL if the first SSL connection fails under sslmode=prefer, that led to an issue when the server has SSL support but explicitly denies SSL connection through pg_hba.conf. This commit adds a retry in a new connection, which makes it easy to implement the sslmode=allow retry.

Fixes #716

fantix force-pushed the t716-sslmode-allow branch from 77d4742 to c993737 Compare March 22, 2021 03:36
fantix marked this pull request as ready for review March 22, 2021 03:45
fantix requested a review from elprans March 22, 2021 03:56
fantix force-pushed the t716-sslmode-allow branch 7 times, most recently from 7ee46eb to f38aa70 Compare March 24, 2021 02:50
Comment thread asyncpg/connect_utils.py Outdated
fantix added 2 commits March 23, 2021 23:10
We didn't really retry the connection without SSL if the first SSL
connection fails under sslmode=prefer, that led to an issue when the
server has SSL support but explicitly denies SSL connection through
pg_hba.conf. This commit adds a retry in a new connection, which
makes it easy to implement the sslmode=allow retry.

Fixes MagicStack#716
fantix force-pushed the t716-sslmode-allow branch from f38aa70 to 25323fd Compare March 24, 2021 03:19
fantix merged commit 075114c into MagicStack:master Mar 24, 2021
fantix deleted the t716-sslmode-allow branch March 24, 2021 03:40
elprans mentioned this pull request May 17, 2021
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.

SSL 'prefer' option in asyncpg behaves different than libpq

2 participants


Back | FazBrowse Home | New Git URL