From 013d5c18c3078fe737c5f20382cbdc834cfff3dc Mon Sep 17 00:00:00 2001 From: Carlo Wood Date: Tue, 18 Nov 2014 23:02:40 +0100 Subject: debug: added new connection cache output, plus fixups Debug output 'typo' fix. Don't print an extra "0x" in * Pipe broke: handle 0x0x2546d88, url = / Add debug output. Print the number of connections in the connection cache when adding one, and not only when one is removed. Fix typos in comments. --- lib/conncache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/conncache.c') diff --git a/lib/conncache.c b/lib/conncache.c index 9522aeb10..d07718e83 100644 --- a/lib/conncache.c +++ b/lib/conncache.c @@ -152,6 +152,10 @@ CURLcode Curl_conncache_add_conn(struct conncache *connc, conn->connection_id = connc->next_connection_id++; connc->num_connections++; + DEBUGF(infof(conn->data, "Added connection %d. " + "The cache now contains %d members\n", + conn->connection_id, connc->num_connections)); + return CURLE_OK; } -- cgit v1.2.1