forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit96752b0
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 parenta86b2da commit96752b0
1 file changed
+39
-7
lines changedLines changed: 39 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3282 | 3282 |
| |
3283 | 3283 |
| |
3284 | 3284 |
| |
3285 |
| - | |
3286 |
| - | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
3287 | 3293 |
| |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
3288 | 3313 |
| |
3289 | 3314 |
| |
3290 |
| - | |
| 3315 | + | |
3291 | 3316 |
| |
3292 | 3317 |
| |
3293 | 3318 |
| |
| |||
3298 | 3323 |
| |
3299 | 3324 |
| |
3300 | 3325 |
| |
| 3326 | + | |
3301 | 3327 |
| |
3302 |
| - | |
3303 |
| - | |
3304 | 3328 |
| |
3305 |
| - | |
3306 |
| - | |
3307 | 3329 |
| |
3308 | 3330 |
| |
3309 | 3331 |
| |
3310 | 3332 |
| |
3311 | 3333 |
| |
3312 | 3334 |
| |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
3313 | 3345 |
| |
3314 | 3346 |
| |
3315 | 3347 |
| |
|
0 commit comments
Comments
(0)