]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix timeout in LDAP lookup of libpq connection parameters
authorMagnus Hagander <magnus@hagander.net>
Wed, 16 Apr 2014 15:18:02 +0000 (17:18 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 16 Apr 2014 16:59:28 +0000 (18:59 +0200)
commitc4bf15b9c3f80da78e1c5c32c8063c3146f85af8
treee2fd2a93ceee25e7421347a0704bfc7c71a98e74
parentbed499ed1d94f05195c63387d4629644e0df4149
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 server
does not respond.

Laurenz Albe
src/interfaces/libpq/fe-connect.c