diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-03 07:26:58 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-03 07:26:58 +0000 |
commit | 6022bfea11bc3f89b9baf787563203b36779361e (patch) | |
tree | fca1dfe66f140fdceb838be9e16270c696f214b8 /src | |
parent | d8e5f3a3a2fe68be89eddd00c4a5c01922c378a8 (diff) | |
download | tor-6022bfea11bc3f89b9baf787563203b36779361e.tar tor-6022bfea11bc3f89b9baf787563203b36779361e.tar.gz |
better debugging for lonely flushes
svn:r1213
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index f69fb7e63..139882e35 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); |