Mercurial > dovecot > core-2.2
changeset 19006:5ec09852704a
lib-http: Added more debug logging.
Patch by Stephan Bosch.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 25 Aug 2015 17:03:19 +0300 |
parents | feef967b10fe |
children | c3bea195a020 |
files | src/lib-http/http-client-peer.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-peer.c Tue Aug 25 16:57:57 2015 +0300 +++ b/src/lib-http/http-client-peer.c Tue Aug 25 17:03:19 2015 +0300 @@ -220,6 +220,9 @@ /* disconnect if we're not linked to any queue anymore */ if (array_count(&peer->queues) == 0) { i_assert(peer->to_backoff != NULL); + http_client_peer_debug(peer, + "Peer no longer used; will now disconnect " + "(%u connections exist)", array_count(&peer->conns)); http_client_peer_disconnect(peer); return; } @@ -227,6 +230,9 @@ /* don't do anything unless we have pending requests */ num_pending = http_client_peer_requests_pending(peer, &num_urgent); if (num_pending == 0) { + http_client_peer_debug(peer, + "No requests to service for this peer " + "(%u connections exist)", array_count(&peer->conns)); http_client_peer_check_idle(peer); return; } @@ -296,10 +302,13 @@ } } } - + /* don't continue unless we have more pending requests */ num_pending = http_client_peer_requests_pending(peer, &num_urgent); if (num_pending == 0) { + http_client_peer_debug(peer, + "No more requests to service for this peer " + "(%u connections exist)", array_count(&peer->conns)); http_client_peer_check_idle(peer); return; }