forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbbf9c28
committed
libpq: Handle NegotiateProtocolVersion message
Before, receiving a NegotiateProtocolVersion message would result in aconfusing error message like expected authentication request from server, but received vThis adds proper handling of this protocol message and produces anon-topic error message from it.Reviewed-by: Jacob Champion <jchampion@timescale.com>Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/f9c7862f-b864-8ef7-a861-c4638c83e209%40enterprisedb.com1 parentdce92e5 commitbbf9c28
3 files changed
+73
-5
lines changedLines changed: 17 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3194 | 3194 |
| |
3195 | 3195 |
| |
3196 | 3196 |
| |
3197 |
| - | |
3198 |
| - | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
3199 | 3200 |
| |
3200 |
| - | |
| 3201 | + | |
3201 | 3202 |
| |
3202 | 3203 |
| |
3203 | 3204 |
| |
| |||
3214 | 3215 |
| |
3215 | 3216 |
| |
3216 | 3217 |
| |
3217 |
| - | |
| 3218 | + | |
| 3219 | + | |
3218 | 3220 |
| |
3219 | 3221 |
| |
3220 | 3222 |
| |
3221 | 3223 |
| |
3222 | 3224 |
| |
3223 | 3225 |
| |
3224 |
| - | |
| 3226 | + | |
3225 | 3227 |
| |
3226 | 3228 |
| |
3227 | 3229 |
| |
| |||
3351 | 3353 |
| |
3352 | 3354 |
| |
3353 | 3355 |
| |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
3354 | 3366 |
| |
3355 | 3367 |
| |
3356 | 3368 |
| |
|
Lines changed: 55 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1385 | 1385 |
| |
1386 | 1386 |
| |
1387 | 1387 |
| |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
1388 | 1443 |
| |
1389 | 1444 |
| |
1390 | 1445 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
685 | 685 |
| |
686 | 686 |
| |
687 | 687 |
| |
| 688 | + | |
688 | 689 |
| |
689 | 690 |
| |
690 | 691 |
| |
|
0 commit comments
Comments
(0)