aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-11 06:19:08 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-11 06:19:08 +0000
commit9b4203266e7e0e7d162bde0063281d0ab6e0b415 (patch)
treef8e81d34b49dca09d622fcb1efee4914d8c6d26e /src/or/connection.c
parent59e2c77824840f8cd5706c4ae660bc7f50bab0f1 (diff)
downloadtor-9b4203266e7e0e7d162bde0063281d0ab6e0b415.tar
tor-9b4203266e7e0e7d162bde0063281d0ab6e0b415.tar.gz
Make OP work on windows! (Also misc logging tweaks)
svn:r1258
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index f2528aa00..ec522b215 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -154,8 +154,8 @@ void connection_close_immediate(connection_t *conn)
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);
+ log_fn(LOG_INFO,"Closing connection (fd %d, type %s, state %d) with data on outbuf.",
+ conn->s, CONN_TYPE_TO_STRING(conn->type), conn->state);
}
close(conn->s);
conn->s = -1;
@@ -226,7 +226,8 @@ void connection_expire_held_open(void)
if (conn->hold_open_until_flushed) {
assert(conn->marked_for_close);
if (now - conn->timestamp_lastwritten >= 15) {
- log_fn(LOG_WARN,"Giving up on marked_for_close conn that's been flushing for 15s (fd %d, type %d, state %d).", conn->s, conn->type, conn->state);
+ log_fn(LOG_WARN,"Giving up on marked_for_close conn that's been flushing for 15s (fd %d, type %s, state %d).",
+ conn->s, CONN_TYPE_TO_STRING(conn->type), conn->state);
conn->hold_open_until_flushed = 0;
}
}