(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Installation : (Answer) FD_SETSIZE is too small, how do I raise it?
In current versions of OpenLDAP Software, one can define OPENLDAP_FD_SETSIZE to raise FD_SETSIZE. That is,
  env CPPFLAGS="-DOPENLDAP_FD_SETSIZE=8192" ./configure
will cause FD_SETSIZE to be set to 8192.
When using older releases of OpenLDAP Software, depending on the system, one might be able to:
  env CPPFLAGS="-DFD_SETSIZE=8192" ./configure ...
to raise the FD_SETSIZE. If this results in compilation errors, you'll either have to hack system headers or back port the <ac/fdset.h> solution to the older release.
Note: redefining FD_SETSIZE on some platforms, especially very old platforms, may require rebuilding of libc and possibly kernel changes. However, on many modern platforms resizing FD_SETSIZE can safely be done without rebuilding the world.
What versions are "current versions of OpenLDAP Software" and what exactly are "older releases of OpenLDAP Software" ? I use 2.2.30 and it seems to understand OPENLDAP_FD_SETSIZE, but I do not think it's a "current" version.
[Append to This Answer]
Previous: (Answer) How do I NOT use crypt(3) from OpenSSL?
Next: (Answer) How do I build OpenLDAP so that it can support a large number of connections?
This document is: http://www.openldap.org/faq/index.cgi?file=1126
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org