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

This commit is contained in:
Kurt Zeilenga 2005-05-05 19:41:12 +00:00
parent 1001d062d3
commit b9139ebf07

View file

@ -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