mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
dispose of connection when server down (related to ITS#5127)
This commit is contained in:
parent
27e747ad48
commit
d50645fc0a
1 changed files with 8 additions and 0 deletions
|
|
@ -558,6 +558,14 @@ nextresp3:
|
|||
if ( sock_errno() == EAGAIN ) return LDAP_MSG_X_KEEP_LOOKING;
|
||||
#endif
|
||||
ld->ld_errno = LDAP_SERVER_DOWN;
|
||||
#ifdef LDAP_R_COMPILE
|
||||
ldap_pvt_thread_mutex_lock( &ld->ld_req_mutex );
|
||||
#endif
|
||||
ldap_free_connection( ld, lc, 1, 0 );
|
||||
#ifdef LDAP_R_COMPILE
|
||||
ldap_pvt_thread_mutex_unlock( &ld->ld_req_mutex );
|
||||
#endif
|
||||
lc = *lcp = NULL;
|
||||
return -1;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue