[or-cvs] more details when a conn is closed before it"s done flushing

Roger Dingledine arma at seul.org
Fri Mar 12 08:16:51 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	main.c 
Log Message:
more details when a conn is closed before it's done flushing


Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.199
retrieving revision 1.200
diff -u -d -r1.199 -r1.200
--- main.c	11 Mar 2004 20:15:53 -0000	1.199
+++ main.c	12 Mar 2004 08:16:48 -0000	1.200
@@ -260,8 +260,10 @@
       return;
     }
     if(connection_wants_to_flush(conn)) {
-      log_fn(LOG_WARN,"Conn (fd %d) still wants to flush. Losing %d bytes!",
-             conn->s, (int)buf_datalen(conn->outbuf));
+      log_fn(LOG_WARN,"Conn (fd %d, type %s, state %d) still wants to flush. Losing %d bytes! (Marked at %s:%d)",
+             conn->s, CONN_TYPE_TO_STRING(conn->type), conn->state,
+             (int)buf_datalen(conn->outbuf), conn->marked_for_close_file,
+             conn->marked_for_close);
     }
   }
   connection_remove(conn);



More information about the tor-commits mailing list