From: Stephan Bosch Date: Wed, 14 Sep 2016 23:59:23 +0000 (+0200) Subject: lib-http: client: Improved logging of connection loss handling in peer. X-Git-Tag: 2.2.27~234 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f5429bc6dfac74690d407e97cf2f71ded2f422c;p=thirdparty%2Fdovecot%2Fcore.git lib-http: client: Improved logging of connection loss handling in peer. --- diff --git a/src/lib-http/http-client-peer.c b/src/lib-http/http-client-peer.c index 9869ab21e0..2a5b9d1196 100644 --- a/src/lib-http/http-client-peer.c +++ b/src/lib-http/http-client-peer.c @@ -762,12 +762,15 @@ void http_client_peer_connection_lost(struct http_client_peer *peer) num_pending = http_client_peer_requests_pending(peer, &num_urgent); http_client_peer_debug(peer, - "Lost a connection " - "(%d connections left, %u requests pending, %u requests urgent)", - array_count(&peer->conns), num_pending, num_urgent); + "Lost a connection (%u queues linked, %u connections left, " + "%u requests pending, %u requests urgent)", + array_count(&peer->queues), array_count(&peer->conns), + num_pending, num_urgent); if (peer->handling_requests) { /* we got here from the request handler loop */ + http_client_peer_debug(peer, + "Lost a connection while handling requests"); return; }