From 3e50687bf7367ec99f6e688203a54bae2124a9f7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 11 Sep 2006 21:19:38 +0000 Subject: [PATCH] In connection_next, sockets may not be contiguous on Unix if syslog etc are active. Just search to the end of the table, tracking the max isn't worth the lock overhead. --- servers/slapd/connection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 248b3b67f6..6afc81bbc6 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -923,7 +923,11 @@ Connection* connection_next( Connection *c, ber_socket_t *index ) int c_struct; if( connections[*index].c_struct_state == SLAP_C_UNINITIALIZED ) { assert( connections[*index].c_conn_state == SLAP_C_INVALID ); +#ifdef HAVE_WINSOCK break; +#else + continue; +#endif } if( connections[*index].c_struct_state == SLAP_C_USED ) { -- 2.39.5