From 623cb0e311cb2d152b0e2af9bd654707679b38a3 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 12 Mar 2004 08:16:48 +0000 Subject: more details when a conn is closed before it's done flushing svn:r1262 --- src/or/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/or') diff --git a/src/or/main.c b/src/or/main.c index ff1d529121..7a09c82138 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -260,8 +260,10 @@ static void conn_close_if_marked(int i) { 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); -- cgit v1.2.3-54-g00ecf