forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb63dd3d
committed
Add hints about protocol-version-related SSL connection failures.
OpenSSL's native reports about problems related to protocol versionrestrictions are pretty opaque and inconsistent. When we get anSSL error that is plausibly due to this, emit a hint message thatincludes the range of SSL protocol versions we (think we) areallowing. This should at least get the user thinking in the rightdirection to resolve the problem, even if the hint isn't totallyaccurate, which it might not be for assorted reasons.Back-patch to v13 where we increased the default minimum protocolversion, thereby increasing the risk of this class of failure.Patch by me, reviewed by Daniel GustafssonDiscussion:https://postgr.es/m/a9408304-4381-a5af-d259-e55d349ae4ce@2ndquadrant.com1 parent6e682f6 commitb63dd3d
File tree
3 files changed
+127
-2
lines changed- src
- backend/libpq
- include/common
- interfaces/libpq
3 files changed
+127
-2
lines changedLines changed: 66 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
| |||
365 | 366 |
| |
366 | 367 |
| |
367 | 368 |
| |
| 369 | + | |
368 | 370 |
| |
369 | 371 |
| |
370 | 372 |
| |
| |||
451 | 453 |
| |
452 | 454 |
| |
453 | 455 |
| |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
454 | 488 |
| |
455 | 489 |
| |
456 | 490 |
| |
457 |
| - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
458 | 500 |
| |
459 | 501 |
| |
460 | 502 |
| |
| |||
1328 | 1370 |
| |
1329 | 1371 |
| |
1330 | 1372 |
| |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1331 | 1396 |
| |
1332 | 1397 |
| |
1333 | 1398 |
| |
|
Lines changed: 22 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
20 | 41 |
| |
21 | 42 |
| |
22 | 43 |
| |
23 | 44 |
| |
24 | 45 |
| |
25 | 46 |
| |
26 |
| - | |
| 47 | + | |
27 | 48 |
| |
28 | 49 |
|
Lines changed: 39 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1304 | 1304 |
| |
1305 | 1305 |
| |
1306 | 1306 |
| |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
1307 | 1346 |
| |
1308 | 1347 |
| |
1309 | 1348 |
| |
|
0 commit comments
Comments
(0)