[Date Prev][Date Next]
(ITS#4963) Sub-second ldap_search timeout accuracy
Full_Name: Christian Schlatter
Version: CVS HEAD (Mon May 14 15:21:36 EDT 2007)
OS: ubuntu dapper
Submission from: (NULL) (22.214.171.124)
I'm developing an LDAP module for the OpenSER SIP server using OpenLDAP libldap.
Since this is a real-time application I need to be able to set LDAP timeouts to
a value less than a second. This isn't possible with the existing libldap
In particular, the timeout check at the end of function wait4msg(..) in result.c
only has an accuracy of one second. This lead to unexpected behavior for timeout
values that are less than a second.
I've added a patch for your consideration that adds sub-second accuracy to
wait4msg. The code works for me but I don't have experience with the OpenLDAP
source code and any coding guidelines. Nevertheless, I'd be very glad if this
functionality could be incorporated in a future OpenLDAP release.