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

Delay in do_ldap_select?



Hi LDAP folks;

I'm trying to debug a problem where slapd pauses for 3 to 10 seconds
while performing a query.  If I turn debugging on it looks like this:

# ldapsearch -d 1 -x -w $PW -h 127.0.0.1 -D cn=ldapadmin,dc=blah,dc=org
-b dc=blah,dc=org uid=ink 2>&1
ldap_create
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: 127.0.0.1
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 3 tm: -1 async: 0
ldap_ndelay_on: 3
ldap_is_sock_ready: 3
ldap_ndelay_off: 3
ldap_int_sasl_open: host=server.blah.org
ldap_open_defconn: successful
ldap_send_server_request
ber_flush: 52 bytes to sd 3
ldap_result msgid 1
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid 1
wait4msg continue, msgid 1, all 1
** Connections:
* host: 127.0.0.1  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Mon Mar 31 12:06:18 2003

** Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
do_ldap_select

--==  It pauses here ==--

Is this a DNS problem, or something else...?

Thanks for any ideas,

  Craig Kelley