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

Re: Multithreading in OpenLDAP

> I know that OPenLDAP is a multithreaded software. But do you how does it
> work? Does it employ a thread for each client connection, or does it
> employ another mechanism?

New connections are put into a queue and a pool of threads draw from that
queue. The pool of threads may grow until it hits a max size,
defined by SLAP_MAX_WORKER_THREADS in servers/slapd/slap.h, currently 32.

Implemented in servers/slapd/connection.c and libraries/libldap_r/tpool.c

-Mark Adamson
 Carnegie Mellon