List Info

Thread: (ITS#4963) Sub-second ldap_search timeout accuracy




(ITS#4963) Sub-second ldap_search timeout accuracy
country flaguser name
United States
2007-05-14 14:51:39
Full_Name: Christian Schlatter
Version: CVS HEAD (Mon May 14 15:21:36 EDT 2007)
OS: ubuntu dapper
URL: ht
tp://www.unc.edu/~cschlatt/openldap/result.patch
Submission from: (NULL) (152.2.199.72)


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
ldap_result(...timeout...) implementation.

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.

Christian



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )