forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit394eec1
committed
Fix for EINTR returns from Win9X socket operations:
In summary, if a software writer implements timer events or other events which generate a signal with a timing fast enough to occur while libpqis inside connect(), then connect returns -EINTR. The code followingthe connect call does not handle this and generates an error message.The sum result is that the pg_connect() fails. If the timer or otherevent is right on the window of the connect() completion time, thepg_connect() may appear to work sporadically. If the event is too slow, pg_connect() will appear to always work and if the event is too fast,pg_connect() will always fail.David Ford1 parentb66cbc1 commit394eec1
2 files changed
+31
-13
lines changedLines changed: 19 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
913 | 913 |
| |
914 | 914 |
| |
915 | 915 |
| |
| 916 | + | |
916 | 917 |
| |
917 | 918 |
| |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
918 | 923 |
| |
919 | 924 |
| |
920 | 925 |
| |
| |||
949 | 954 |
| |
950 | 955 |
| |
951 | 956 |
| |
| 957 | + | |
952 | 958 |
| |
953 | 959 |
| |
954 | 960 |
| |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
955 | 965 |
| |
956 | 966 |
| |
957 | 967 |
| |
| |||
2132 | 2142 |
| |
2133 | 2143 |
| |
2134 | 2144 |
| |
| 2145 | + | |
2135 | 2146 |
| |
2136 | 2147 |
| |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
2137 | 2151 |
| |
2138 | 2152 |
| |
2139 | 2153 |
| |
| |||
2150 | 2164 |
| |
2151 | 2165 |
| |
2152 | 2166 |
| |
| 2167 | + | |
2153 | 2168 |
| |
2154 | 2169 |
| |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2155 | 2173 |
| |
2156 | 2174 |
| |
2157 | 2175 |
| |
|
Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
364 |
| - | |
| 364 | + | |
365 | 365 |
| |
366 | 366 |
| |
367 | 367 |
| |
| |||
371 | 371 |
| |
372 | 372 |
| |
373 | 373 |
| |
374 |
| - | |
| 374 | + | |
375 | 375 |
| |
376 | 376 |
| |
377 | 377 |
| |
| |||
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
398 |
| - | |
| 398 | + | |
399 | 399 |
| |
400 | 400 |
| |
401 | 401 |
| |
| |||
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
408 |
| - | |
| 408 | + | |
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
| |||
478 | 478 |
| |
479 | 479 |
| |
480 | 480 |
| |
481 |
| - | |
| 481 | + | |
482 | 482 |
| |
483 | 483 |
| |
484 | 484 |
| |
| |||
490 | 490 |
| |
491 | 491 |
| |
492 | 492 |
| |
493 |
| - | |
| 493 | + | |
494 | 494 |
| |
495 | 495 |
| |
496 | 496 |
| |
| |||
531 | 531 |
| |
532 | 532 |
| |
533 | 533 |
| |
534 |
| - | |
| 534 | + | |
535 | 535 |
| |
536 | 536 |
| |
537 | 537 |
| |
| |||
564 | 564 |
| |
565 | 565 |
| |
566 | 566 |
| |
567 |
| - | |
| 567 | + | |
568 | 568 |
| |
569 | 569 |
| |
570 | 570 |
| |
| |||
576 | 576 |
| |
577 | 577 |
| |
578 | 578 |
| |
579 |
| - | |
| 579 | + | |
580 | 580 |
| |
581 | 581 |
| |
582 | 582 |
| |
| |||
804 | 804 |
| |
805 | 805 |
| |
806 | 806 |
| |
807 |
| - | |
| 807 | + | |
808 | 808 |
| |
809 | 809 |
| |
810 | 810 |
| |
| |||
817 | 817 |
| |
818 | 818 |
| |
819 | 819 |
| |
820 |
| - | |
| 820 | + | |
821 | 821 |
| |
822 | 822 |
| |
823 | 823 |
| |
|
0 commit comments
Comments
(0)