简体   繁体   中英

How do I make openldap's client (libldap) accept more than 1024 file descriptors?

OpenLDAP as a server can handle N number of requests because it supports epoll (there is no hard limit). However, when openldap behaves as a client (and tries to communicate with directory services to fulfill client requests), it encounters a problem. As it still uses select(), it cannot accept file descriptors greater than 1024. It's for the Linux operating system. In other words, epoll is used on the server side, while select() is used on the client side. LibLdap could fail to process requests and wonder why select() is still used.

The goal is to make libldap handle more than 1024 Fds. Is it possible to use epoll for libldap as well? Please let me know if you have any better solutions.

It would be great if someone can share their thoughts in this aspect.

Thanks

I have realized that libldap already having a solution in the form of poll(). Earlier I have overlooked taht.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM