pgsql: Fix timeout in LDAP lookup of libpq connection parameters

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Fix timeout in LDAP lookup of libpq connection parameters
Дата
Msg-id E1WaTHW-00019h-GG@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c4bf15b9c3f80da78e1c5c32c8063c3146f85af8

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Add to_regprocedure() and to_regoperator().
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Fix timeout in LDAP lookup of libpq connection parameters