]> granicus.if.org Git - curl/commitdiff
Added infof() calls for persistant connection info, we are very likely to
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Mar 2001 13:58:03 +0000 (13:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Mar 2001 13:58:03 +0000 (13:58 +0000)
need these at least for debugging 7.7 and probably later as well...

lib/transfer.c
lib/url.c

index 0281921662c6ea2163a22e0351251067fcd5f0d1..14072580d6a81dded8bf7d39119512a2c6c1c0e5 100644 (file)
@@ -396,6 +396,7 @@ Transfer(struct connectdata *c_conn)
                  * Default action for 1.0 is to close.
                  */
                 conn->bits.close = FALSE; /* don't close when done */
+                infof(data, "HTTP/1.0 proxy connection set to keep alive!\n");
               }
               else if (strnequal("Connection: close", p,
                                  strlen("Connection: close"))) {
index 201d35eebc4affeb1fab355ddf1b005e4d122d20..aebb2b60436b7751167b5989c5cb1a0f55f0ad06 100644 (file)
--- 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;
 }