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

Confused about ldap_result() search results



First of all, pardon my ignorance, but I'm really trying to understand how
ldap_result() functions for search results.

Below are the results I'm seeing using the 1.2.11 library on Win2K when
doing a wildcard search with ld_sizelimit=10.  I hope this doesn't wrap to
badly so it's unreadable - I'll attach a text file with the same results.

The first set shows that with a timeout = 1 second, only one ldap_result()
was issued to get the entire chain of results (this took appox. 30ms).  The
second set is for the same search with timeout = 999 milliseconds.  It took
11 total ldap_result() calls to finally obtain the entire chain (this took
approx. 280ms).

Does anyone know why this functions so differently with timeouts < 1 sec?
Is my system clock to blame - my worstation is a Pentium II 400 Mhz?
And why isn't ldap_result() timing out?
Are the 11 ldap_result() calls returning each of the 10 entries and then the
result?

==============================
Result Timeout = 1sec, all=1
2001/09/26 15:25:00.226 - CallID=5472526, App=ldap_stress, CmdLDAPSearch,
Search
2001/09/26 15:25:00.226 - CallID=5472526, CmdLDAPSearch. Sending LDAP
request to LDAP client thread.
2001/09/26 15:25:00.256 - CallID=5472526, LDAPClientThread. Received valid
result.

==============================
Result Timeout = 999msec, all=1
2001/09/26 15:19:04.274 - CallID=5472514, App=ldap_stress, CmdLDAPSearch,
Search
2001/09/26 15:19:04.274 - CallID=5472514, CmdLDAPSearch. Sending LDAP
request to LDAP client thread.
2001/09/26 15:19:04.334 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.344 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.344 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.344 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.394 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.394 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.404 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.474 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.484 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.484 - CallID=5472514, LDAPClientThread. Result not
ready. Requeue message.
2001/09/26 15:19:04.554 - CallID=5472514, LDAPClientThread. Received valid
result.
Result Timeout = 1sec, all=1
2001/09/26 15:25:00.226 - CallID=5472526, App=ldap_stress, CmdLDAPSearch, Search
2001/09/26 15:25:00.226 - CallID=5472526, CmdLDAPSearch. Sending LDAP request to LDAP client thread.
2001/09/26 15:25:00.256 - CallID=5472526, LDAPClientThread. Received valid result.

Result Timeout = 999msec, all=1
2001/09/26 15:19:04.274 - CallID=5472514, App=ldap_stress, CmdLDAPSearch, Search
2001/09/26 15:19:04.274 - CallID=5472514, CmdLDAPSearch. Sending LDAP request to LDAP client thread.
2001/09/26 15:19:04.334 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.344 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.344 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.344 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.394 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.394 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.404 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.474 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.484 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.484 - CallID=5472514, LDAPClientThread. Result not ready. Requeue message.
2001/09/26 15:19:04.554 - CallID=5472514, LDAPClientThread. Received valid result.