forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcc26927
committed
Fix timeout in LDAP lookup of libpq connection parameters
Bind attempts to an LDAP server should time out after two seconds,allowing additional lines in the service control file to be parsed(which provide a fall back to a secondary LDAP server or default options).The existing code failed to enforce that timeout during TCP connect,resulting in a hang far longer than two seconds if the LDAP serverdoes not respond.Laurenz Albe1 parentf716c32 commitcc26927
1 file changed
+39
-7
lines changedLines changed: 39 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3526 | 3526 |
| |
3527 | 3527 |
| |
3528 | 3528 |
| |
3529 |
| - | |
3530 |
| - | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
3531 | 3537 |
| |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
3532 | 3557 |
| |
3533 | 3558 |
| |
3534 |
| - | |
| 3559 | + | |
3535 | 3560 |
| |
3536 | 3561 |
| |
3537 | 3562 |
| |
| |||
3542 | 3567 |
| |
3543 | 3568 |
| |
3544 | 3569 |
| |
| 3570 | + | |
3545 | 3571 |
| |
3546 |
| - | |
3547 |
| - | |
3548 | 3572 |
| |
3549 |
| - | |
3550 |
| - | |
3551 | 3573 |
| |
3552 | 3574 |
| |
3553 | 3575 |
| |
3554 | 3576 |
| |
3555 | 3577 |
| |
3556 | 3578 |
| |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
3557 | 3589 |
| |
3558 | 3590 |
| |
3559 | 3591 |
| |
|
0 commit comments
Comments
(0)