- Notifications
You must be signed in to change notification settings - Fork5
Commit4717992
committed
Instead of a bare recv() to read the server's response to an SSL
request packet, use pqReadData(). This has the same effect sinceconn->ssl isn't set yet and we aren't expecting more than one byte.The advantage is that we will correctly detect loss-of-connectioninstead of going into an infinite loop. Per report from Hannu Krosing.1 parenta3f98d5 commit4717992
1 file changed
+21
-15
lines changedLines changed: 21 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1452 | 1452 |
| |
1453 | 1453 |
| |
1454 | 1454 |
| |
1455 |
| - | |
1456 |
| - | |
| 1455 | + | |
1457 | 1456 |
| |
1458 | 1457 |
| |
1459 | 1458 |
| |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
1460 | 1464 |
| |
1461 |
| - | |
| 1465 | + | |
1462 | 1466 |
| |
1463 |
| - | |
1464 |
| - | |
1465 |
| - | |
| 1467 | + | |
| 1468 | + | |
1466 | 1469 |
| |
1467 |
| - | |
1468 |
| - | |
1469 |
| - | |
1470 |
| - | |
1471 |
| - | |
1472 |
| - | |
1473 |
| - | |
| 1470 | + | |
1474 | 1471 |
| |
1475 | 1472 |
| |
1476 |
| - | |
| 1473 | + | |
| 1474 | + | |
1477 | 1475 |
| |
1478 | 1476 |
| |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1479 | 1485 |
| |
1480 | 1486 |
| |
1481 | 1487 |
| |
|
0 commit comments
Comments
(0)