From 6022bfea11bc3f89b9baf787563203b36779361e Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 3 Mar 2004 07:26:58 +0000 Subject: better debugging for lonely flushes svn:r1213 --- src/or/main.c | 7 +++++-- 1 file 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); -- cgit v1.2.3-54-g00ecf