diff options
author | Carlo Wood <carlo@alinoe.com> | 2014-11-18 23:02:40 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-11-18 23:02:40 +0100 |
commit | 013d5c18c3078fe737c5f20382cbdc834cfff3dc (patch) | |
tree | c383fa6d0e3189a252e2f0b14b679b80f51f2cc5 /lib/conncache.c | |
parent | b77ff4d589785861b0a91bef6b6fc2a261374f1c (diff) | |
download | curl-013d5c18c3078fe737c5f20382cbdc834cfff3dc.tar.gz |
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.
Diffstat (limited to 'lib/conncache.c')
-rw-r--r-- | lib/conncache.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |