mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
dispose of connection when server down (related to ITS#5127)
This commit is contained in:
parent
27e747ad48
commit
d50645fc0a
@ -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…
x
Reference in New Issue
Block a user