[or-cvs] r9400: more hints as arma tracks down a polipo bug (tor/trunk/src/or)

arma at seul.org arma at seul.org
Wed Jan 24 23:58:42 UTC 2007


Author: arma
Date: 2007-01-24 18:58:41 -0500 (Wed, 24 Jan 2007)
New Revision: 9400

Modified:
   tor/trunk/src/or/connection_edge.c
Log:
more hints as arma tracks down a polipo bug


Modified: tor/trunk/src/or/connection_edge.c
===================================================================
--- tor/trunk/src/or/connection_edge.c	2007-01-24 23:42:00 UTC (rev 9399)
+++ tor/trunk/src/or/connection_edge.c	2007-01-24 23:58:41 UTC (rev 9400)
@@ -376,6 +376,19 @@
         } else {
           log_fn(severity, LD_APP, "Closing unattached stream (state %d).",
                  conn->_base.state);
+          /* XXX012 remove the below clause before stable release -RD */
+          if (conn->_base.state == AP_CONN_STATE_SOCKS_WAIT) {
+            /* extra debugging */
+            log_fn(severity, LD_APP,
+                   "Hints: inbuf len %d, socks: version %d, command %d, "
+                   "has_finished %d, address %s, port %d.",
+                   buf_datalen(conn->_base.inbuf),
+                   conn->socks_request->socks_version,
+                   conn->socks_request->command,
+                   conn->socks_request->has_finished,
+                   conn->socks_request->address,
+                   conn->socks_request->port);
+          }
         }
         connection_mark_unattached_ap(conn, END_STREAM_REASON_TIMEOUT);
       }



More information about the tor-commits mailing list