Repository navigation
Commit 4c06bcd
committed
Set postgresql ALPN on SSL contexts created by asyncpg
PostgreSQL 17+ rejects direct SSL connections without the `postgresql`
ALPN protocol, so `direct_tls=True` only worked through TLS-terminating
proxies. Set it on the contexts asyncpg creates, like libpq does, and
document that user-provided contexts need it for direct TLS.
Fixes MagicStack#1371.1 parent 6be5915 commit 4c06bcd
3 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
811 | 814 | | |
812 | 815 | | |
813 | 816 | | |
| 817 | + | |
| 818 | + | |
814 | 819 | | |
815 | 820 | | |
| 821 | + | |
816 | 822 | | |
817 | 823 | | |
818 | 824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2337 | 2337 | | |
2338 | 2338 | | |
2339 | 2339 | | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
2340 | 2344 | | |
2341 | 2345 | | |
2342 | 2346 | | |
| |||
2456 | 2460 | | |
2457 | 2461 | | |
2458 | 2462 | | |
| 2463 | + | |
| 2464 | + | |
2459 | 2465 | | |
2460 | 2466 | | |
2461 | 2467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2331 | 2331 | | |
2332 | 2332 | | |
2333 | 2333 | | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
2334 | 2348 | | |
2335 | 2349 | | |
2336 | 2350 | | |
| |||
0 commit comments