From a865220fd8fe90c4bbc08847921ac128a757f4e9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 17 Oct 2000 06:36:22 +0000 Subject: [PATCH] Bump listeners to 10 --- servers/slapd/daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 5aecc3bcea..9e3c98360d 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -59,6 +59,8 @@ typedef struct slap_listener { Listener **slap_listeners = NULL; +#define SLAPD_LISTEN 10 + static ber_socket_t wake_sds[2]; #ifdef NO_THREADS @@ -698,7 +700,7 @@ slapd_daemon_task( if ( slap_listeners[l]->sl_sd == AC_SOCKET_INVALID ) continue; - if ( listen( slap_listeners[l]->sl_sd, 5 ) == -1 ) { + if ( listen( slap_listeners[l]->sl_sd, SLAPD_LISTEN ) == -1 ) { int err = sock_errno(); Debug( LDAP_DEBUG_ANY, "daemon: listen(%s, 5) failed errno=%d (%s)\n", -- 2.39.5