[Date Prev][Date Next] [Chronological] [Thread] [Top]

libldap LDAP_OPT_NETWORK_TIMEOUT feature (ITS#239)



Full_Name: Lars Uffmann
Version: -devel
OS: aix 3/4, sunos, linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (195.71.129.112)



Enhancment to libldap. It introduces a new LDAP_OPTION,
LDAP_OPT_NETWORK_TIMEOUT, configurable via ldap_(set/get)_options.
The value of LDAP_OPT_NETWORK_TIMEOUT is a struct timeval *,
which is used to specify a timeout to otherwise blocking network related
system calls like connect().

There are several open questions/issues with my patch:

1) configure check for inet_aton().
2) ioctl()/fcntl() portability iussues.
3) on ftp://koobera.math.uic.edu/www/docs/connect.html, D. J. Bernstein
mentions
   that the following code might crash older systems:

        int so_errno;
        int dummy = sizeof(so_errno);
        getsockopt(s,SOL_SOCKET,SO_ERROR,&so_errno,&dummy);

   How to identify those systems ?