Commit b9139ebf authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Increase listen() backlog to 1024, allow compile time override

parent 1001d062
......@@ -76,7 +76,9 @@ struct runqueue_s slapd_rq;
Listener **slap_listeners = NULL;
#define SLAPD_LISTEN 10
#ifndef SLAPD_LISTEN_BACKLOG
#define SLAPD_LISTEN_BACKLOG 1024
#endif
static ber_socket_t wake_sds[2];
static int emfile;
......@@ -1523,7 +1525,7 @@ slapd_daemon_task(
}
#endif
if ( listen( slap_listeners[l]->sl_sd, SLAPD_LISTEN ) == -1 ) {
if ( listen( slap_listeners[l]->sl_sd, SLAPD_LISTEN_BACKLOG ) == -1 ) {
int err = sock_errno();
#ifdef LDAP_PF_INET6
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment