quanah / net-ldapapi

The Net::LDAPapi Perl Module uses the OpenLDAP and Mozilla C api's to directly access and manipulate an LDAP v2 or LDAP v3 server.
8 stars 6 forks source link

ldap_result() and ldap_url_search_st() timeout parameters have a granularity of 1 second #31

Closed phillipod closed 9 years ago

phillipod commented 9 years ago

This is the relevant code being used in both these functions.

 struct timeval *tv_timeout = NULL, timeoutbuf;
 if (timeout && *timeout)
 {
    tv_timeout = &timeoutbuf;
    tv_timeout->tv_sec = atof(timeout);
    tv_timeout->tv_usec = 0;
}

I am currently working on a larger refactor of timeouts in order to resolve #21