From: Luke Howard Date: Mon, 8 Aug 2005 03:44:17 +0000 (+0000) Subject: Don't decrement descriptor count until we have checked connection is not UDP X-Git-Tag: OPENLDAP_AC_BP~57 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17ffdc07b607463b94292a55c6f2e8b74bc61d73;p=openldap Don't decrement descriptor count until we have checked connection is not UDP --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index f84cdddaa6..0bdea4dd9e 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1758,8 +1758,6 @@ slapd_daemon_task( if ( !SLAP_EVENT_IS_READ( slap_listeners[l]->sl_sd )) continue; - ns--; - rc = slapd_handle_listener(slap_listeners[l]); #ifdef LDAP_CONNECTIONLESS @@ -1767,6 +1765,8 @@ slapd_daemon_task( if ( rc ) continue; #endif + ns--; + /* Don't need to look at this in the data loops */ SLAP_EVENT_CLR_READ( slap_listeners[l]->sl_sd ); SLAP_EVENT_CLR_WRITE( slap_listeners[l]->sl_sd );