summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-03 02:07:57 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-03 02:07:57 +0000
commit6379dbbe2a2d19f30468ce03ca1684f332df33c5 (patch)
tree6b594e3c282b8bd3f9050d16a1dad298db828e9d /src/or/connection.c
parent49281424aed515b4c04ea0ad2c859757b1f56984 (diff)
downloadtor-6379dbbe2a2d19f30468ce03ca1684f332df33c5.tar.gz
tor-6379dbbe2a2d19f30468ce03ca1684f332df33c5.zip
warn more when losing data on closed/marked connections.
svn:r1203
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index e0e29cfcae..934543c6d7 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -153,6 +153,10 @@ void connection_close_immediate(connection_t *conn)
log_fn(LOG_WARN,"Attempt to close already-closed connection.");
return;
}
+ if (conn->outbuf_flushlen) {
+ log_fn(LOG_INFO,"Closing connection (fd %d, type %d, state %d) with data on outbuf.",
+ conn->s, conn->type, conn->state);
+ }
close(conn->s);
conn->s = -1;
if(!connection_is_listener(conn)) {