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

RE: no. of available threads

If you have the ability to call slapd functions directly, then you should use
search callbacks instead of using a separate LDAP transaction for the
searches. Then you won't run into this problem because all of your searches
will run in the same thread.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of June Sup Lee
> Sent: Monday, January 27, 2003 5:20 PM
> To: openldap-devel@OpenLDAP.org
> Cc: June Sup Lee
> Subject: no. of available threads
> Is there a library function to get the number of available
> worker threads? I have a slapd which contains multiple backends, where
> one backend ldapsearches the others. If all the threads are
> already taken
> when backend A ldapsearches backend B, this search hangs
> until the timelimit
> because slapd can't find an available thread for backend B.
> June