]> 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)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 9 Nov 2016 12:17:32 +0000 (14:17 +0200)
src/lib-http/http-client-peer.c

index 9869ab21e01b7e6dfc764571fb97e852fffbe0ef..2a5b9d11963e01371c008533d6a1df2e20edafce 100644 (file)
@@ -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;
        }