mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-18 12:54:09 -05:00
Ignore hangups on removed sockets
This commit is contained in:
parent
686ceac31f
commit
b37c553c71
1 changed files with 6 additions and 4 deletions
|
|
@ -2545,12 +2545,14 @@ slapd_daemon_task(
|
|||
} else if ( !w ) {
|
||||
Debug( LDAP_DEBUG_CONNS,
|
||||
"daemon: hangup on %d\n", fd, 0, 0 );
|
||||
if (SLAP_SOCK_IS_ACTIVE( fd ) {
|
||||
#ifdef HAVE_EPOLL
|
||||
/* Don't keep reporting the hangup
|
||||
*/
|
||||
SLAP_EPOLL_SOCK_SET( fd, EPOLLET );
|
||||
/* Don't keep reporting the hangup
|
||||
*/
|
||||
SLAP_EPOLL_SOCK_SET( fd, EPOLLET );
|
||||
#endif
|
||||
connection_hangup( fd );
|
||||
connection_hangup( fd );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue