pgsql: Fix timeout in LDAP lookup of libpq connection parameters

Started by Magnus Haganderover 12 years ago1 messagescomitters
Jump to latest
#1Magnus Hagander
magnus@hagander.net

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/585bca393640b609c54159e1bedd30a89fec5ea8

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 46 +++++++++++++++++++++++++++++++------
1 file changed, 39 insertions(+), 7 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers