summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-03 07:26:58 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-03 07:26:58 +0000
commit6022bfea11bc3f89b9baf787563203b36779361e (patch)
treefca1dfe66f140fdceb838be9e16270c696f214b8
parentd8e5f3a3a2fe68be89eddd00c4a5c01922c378a8 (diff)
downloadtor-6022bfea11bc3f89b9baf787563203b36779361e.tar.gz
tor-6022bfea11bc3f89b9baf787563203b36779361e.zip
better debugging for lonely flushes
svn:r1213
-rw-r--r--src/or/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index f69fb7e63d..139882e352 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -239,8 +239,11 @@ static void conn_close_if_marked(int i) {
* has already been closed as unflushable. */
/* FIXME there's got to be a better way to check for this -- and make other checks? */
log_fn(LOG_WARN,
- "Conn (fd %d, type %d, state %d) marked for close, but wants to flush.",
- conn->s, conn->type, conn->state);
+ "Conn (fd %d, type %d, state %d) marked for close, but wants to flush %d bytes. "
+ "Marked at %s:%d",
+ conn->s, conn->type, conn->state,
+ conn->outbuf_flushlen, conn->marked_for_close_file, conn->marked_for_close);
+ /* XXX change the above to 'warn', and go through and fix all the complaints */
if(connection_speaks_cells(conn)) {
if(conn->state == OR_CONN_STATE_OPEN) {
flush_buf_tls(conn->tls, conn->outbuf, &conn->outbuf_flushlen);