[Date Prev][Date Next]
Re: getaddrinfo and network crash (ITS#2443)
At 07:31 AM 4/14/2003, email@example.com wrote:
>Full_Name: eric gerbier
>Version: 2.0.21 and more
>Submission from: (NULL) (126.96.36.199)
>I use openldap for linux authentification.
>My PAM configuration is : first check ldap server (pam_ldap), then use local
>But I have a problem when the network crash, with ldap server name : the
>getadddrinfo call (in ldap_connect_to_host function, os-ip.c source file) is
>very long (does not seem to use any configurable timeout), in fact too long for
>pam, so I cannot connect to my computer.
>Is there any way to have a timeout in this call to avoid this problem ?
In short, no. The getaddrinfo(3) function doesn't provide a
timeout parameter. However, I note that your operating system
may provide a mechanism to control the timeout used. That is,
you likely can adjust your host configuration to avoid this
This issue will be closed as the requested change is not
>I have an old version, but I had a look in last stable openldap release (2.1.17)
>and the code was unchanged.