mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
Log timed out connections more clearly
This commit is contained in:
parent
c386d527ca
commit
5cbd30ded9
1 changed files with 11 additions and 5 deletions
|
|
@ -58,14 +58,20 @@ upstream_connect_cb( evutil_socket_t s, short what, void *arg )
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if ( rc ) {
|
if ( rc ) {
|
||||||
char ebuf[128];
|
|
||||||
evutil_closesocket( conn->fd );
|
evutil_closesocket( conn->fd );
|
||||||
b->b_opening--;
|
b->b_opening--;
|
||||||
b->b_failed++;
|
b->b_failed++;
|
||||||
Debug( LDAP_DEBUG_ANY, "upstream_connect_cb: "
|
if ( what & EV_TIMEOUT ) {
|
||||||
"fd=%d connection set up failed%s%s\n",
|
Debug( LDAP_DEBUG_ANY, "upstream_connect_cb: "
|
||||||
s, error ? ": " : "",
|
"fd=%d connection timed out\n",
|
||||||
error ? sock_errstr( error, ebuf, sizeof(ebuf) ) : "" );
|
s );
|
||||||
|
} else {
|
||||||
|
char ebuf[128];
|
||||||
|
Debug( LDAP_DEBUG_ANY, "upstream_connect_cb: "
|
||||||
|
"fd=%d connection set up failed%s%s\n",
|
||||||
|
s, error ? ": " : "",
|
||||||
|
error ? sock_errstr( error, ebuf, sizeof(ebuf) ) : "" );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
b->b_failed = 0;
|
b->b_failed = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue