From: Kurt Zeilenga Date: Thu, 5 May 2005 19:41:12 +0000 (+0000) Subject: Increase listen() backlog to 1024, allow compile time override X-Git-Tag: OPENLDAP_AC_BP~730 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b9139ebf072296ebaa13cf7319b0dd03fbc060c3;p=openldap Increase listen() backlog to 1024, allow compile time override --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 53819525aa..4d08f3d129 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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