I am encountering an issue  on ldapsearch periodically "hangs". One out of 100 times it work fine but sometime it hangs. My ldapsearch version is ldapsearch 2.2.13 (Aug 18 2005 22:24:20). When I run it in debug mode it waits in ldap_int_select() function.

 

end of trace is

 

ldap_chkResponseList for msgid=-1, all=1
ldap_chkResponseList returns NULL
ldap_int_select
read1msg: msgid -1, all 1
ber_get_next
ber_get_next: tag 0x30 len 305 contents:
ldap_read: message type search-entry msgid 2, original id 2
adding response id 2 type 100:
wait4msg continue, msgid -1, all 1
** Connections:
* host: 209.236.241.6  port: 20001  (default)
  refcnt: 2  status: Connected
  last used: Thu Feb 28 15:11:52 2008

** Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
 * msgid 2,  type 100
   chained responses:
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
  * msgid 2,  type 100
ldap_chkResponseList for msgid=-1, all=1
ldap_chkResponseList returns NULL
ldap_int_select

Please help me regarding this issue.

 

Regards

Manish