Skip to content
Snippets Groups Projects
Commit b9139ebf authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

parent 1001d062
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,9 @@ struct runqueue_s slapd_rq; ...@@ -76,7 +76,9 @@ struct runqueue_s slapd_rq;
Listener **slap_listeners = NULL; 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 ber_socket_t wake_sds[2];
static int emfile; static int emfile;
...@@ -1523,7 +1525,7 @@ slapd_daemon_task( ...@@ -1523,7 +1525,7 @@ slapd_daemon_task(
} }
#endif #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(); int err = sock_errno();
#ifdef LDAP_PF_INET6 #ifdef LDAP_PF_INET6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment