summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-12 13:58:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-12 13:58:03 +0000
commitd774b10afb1ac27f255a4c1507ce89778faf6f94 (patch)
tree9d594f84eac40759127991838b4b300f2f8189a0 /lib/url.c
parentb449b9439318e3b4593c45746cd301675650b164 (diff)
downloadcurl-d774b10afb1ac27f255a4c1507ce89778faf6f94.tar.gz
Added infof() calls for persistant connection info, we are very likely to
need these at least for debugging 7.7 and probably later as well...
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 201d35eeb..aebb2b604 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -495,6 +495,8 @@ RETSIGTYPE alarmfunc(int signal)
CURLcode Curl_disconnect(struct connectdata *conn)
{
+ infof(conn->data, "Closing live connection (#%d)\n", conn->connectindex);
+
if(-1 != conn->connectindex)
/* unlink ourselves! */
conn->data->connects[conn->connectindex] = NULL;
@@ -1838,6 +1840,8 @@ CURLcode Curl_done(struct connectdata *conn)
in spite of all our efforts to be nice */
if((CURLE_OK == result) && conn->bits.close)
result = Curl_disconnect(conn); /* close the connection */
+ else
+ infof(data, "Connection (#%d) left alive\n", conn->connectindex);
return result;
}