]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: client: Improved logging of connection loss handling in peer.
authorStephan Bosch <stephan@dovecot.fi>
Wed, 14 Sep 2016 23:59:23 +0000 (01:59 +0200)
committerGitLab <gitlab@git.dovecot.net>
Wed, 2 Nov 2016 11:42:18 +0000 (13:42 +0200)
src/lib-http/http-client-peer.c

index 22b52ae97bd2d8cb568a6e01e84b05958a608995..ea0283938dc533e3bb161cb4e7e580368a3c5768 100644 (file)
@@ -780,12 +780,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;
        }