mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
fix -USLAP_LIGHTWEIGHT_DISPACTHER sl_busy issue
This commit is contained in:
parent
8df642ea32
commit
e470116ab3
2 changed files with 9 additions and 2 deletions
|
|
@ -1756,7 +1756,12 @@ slapd_daemon_task(
|
|||
|
||||
if ( lr->sl_sd == AC_SOCKET_INVALID ) continue;
|
||||
|
||||
if ( lr->sl_mute || lr->sl_busy ) {
|
||||
#ifdef SLAP_LIGHTWEIGHT_DISPATCHER
|
||||
if ( lr->sl_mute || lr->sl_busy )
|
||||
#else
|
||||
if ( lr->sl_mute )
|
||||
#endif
|
||||
{
|
||||
SLAP_SOCK_CLR_READ( lr->sl_sd );
|
||||
} else {
|
||||
SLAP_SOCK_SET_READ( lr->sl_sd );
|
||||
|
|
@ -1823,12 +1828,14 @@ slapd_daemon_task(
|
|||
continue;
|
||||
}
|
||||
|
||||
#ifdef SLAP_LIGHTWEIGHT_DISPATCHER
|
||||
if ( lr->sl_busy ) {
|
||||
Debug( LDAP_DEBUG_CONNS,
|
||||
"daemon: select: listen=%d busy\n",
|
||||
lr->sl_sd, 0, 0 );
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
Debug( LDAP_DEBUG_CONNS,
|
||||
"daemon: select: listen=%d active_threads=%d tvp=%s\n",
|
||||
|
|
|
|||
|
|
@ -2744,7 +2744,7 @@ struct slap_listener {
|
|||
#endif
|
||||
int sl_mute; /* Listener is temporarily disabled due to emfile */
|
||||
#ifdef SLAP_LIGHTWEIGHT_DISPATCHER
|
||||
int sl_busy; /* Listener is busy (accept thread activated */
|
||||
int sl_busy; /* Listener is busy (accept thread activated) */
|
||||
#endif
|
||||
ber_socket_t sl_sd;
|
||||
Sockaddr sl_sa;
|
||||
|
|
|
|||
Loading…
Reference in a new issue