Mercurial > dovecot > core-2.2
changeset 21034:3c1664c8f8c5
lib-http: client: Improved logging of connection loss handling in peer.
author | Stephan Bosch <stephan@dovecot.fi> |
---|---|
date | Thu, 15 Sep 2016 01:59:23 +0200 |
parents | 574338c4e346 |
children | 1590d1ff0551 |
files | src/lib-http/http-client-peer.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-peer.c Wed Sep 14 21:37:38 2016 +0200 +++ b/src/lib-http/http-client-peer.c Thu Sep 15 01:59:23 2016 +0200 @@ -762,12 +762,15 @@ 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; }