dovecot-2.2: lib-http: Added more debug logging.

dovecot at dovecot.org dovecot at dovecot.org
Tue Aug 25 14:04:17 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/5ec09852704a
changeset: 19006:5ec09852704a
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 25 17:03:19 2015 +0300
description:
lib-http: Added more debug logging.
Patch by Stephan Bosch.

diffstat:

 src/lib-http/http-client-peer.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r feef967b10fe -r 5ec09852704a src/lib-http/http-client-peer.c
--- 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;
 		}


More information about the dovecot-cvs mailing list