mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 10:07:56 -05:00
ITS#10451 Unregister event before we close socket
We don't need the event anymore so let's make everyone's life easier by not letting the library see different events on different sockets doing different things on the same fd number. epoll/kqueue don't like it and this could be a libevent bug somewhere in handling that refusal.
This commit is contained in:
parent
a1b177ea1d
commit
eb6129e3c5
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ done:
|
|||
|
||||
LDAP_LIST_REMOVE( conn, next );
|
||||
if ( rc ) {
|
||||
event_del( conn->event );
|
||||
evutil_closesocket( conn->fd );
|
||||
b->b_opening--;
|
||||
b->b_failed++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue