diff options
author | Roger Dingledine <arma@torproject.org> | 2005-05-06 08:32:37 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-05-06 08:32:37 +0000 |
commit | cc0b19888d688ed50f5e4bce40bc5017e23d274d (patch) | |
tree | 2972e0202ac9ca57200b336692729e4566f84800 | |
parent | 7901c6e3900025d52c583fce9d439b62164bbd0f (diff) | |
download | tor-cc0b19888d688ed50f5e4bce40bc5017e23d274d.tar.gz tor-cc0b19888d688ed50f5e4bce40bc5017e23d274d.zip |
log buffer sizes on kill -usr1 too.
svn:r4180
-rw-r--r-- | src/or/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index 79e8120282..b7faecdfbf 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1069,11 +1069,14 @@ dumpstats(int severity) { conn->state, conn_state_to_string(conn->type, conn->state), (int)(now - conn->timestamp_created)); if (!connection_is_listener(conn)) { log(severity,"Conn %d is to '%s:%d'.",i,safe_str(conn->address), conn->port); - log(severity,"Conn %d: %d bytes waiting on inbuf (last read %d secs ago)",i, + log(severity,"Conn %d: %d bytes waiting on inbuf (len %d, last read %d secs ago)",i, (int)buf_datalen(conn->inbuf), + (int)buf_capacity(conn->inbuf), (int)(now - conn->timestamp_lastread)); - log(severity,"Conn %d: %d bytes waiting on outbuf (last written %d secs ago)",i, - (int)buf_datalen(conn->outbuf), (int)(now - conn->timestamp_lastwritten)); + log(severity,"Conn %d: %d bytes waiting on outbuf (len %d, last written %d secs ago)",i, + (int)buf_datalen(conn->outbuf), + (int)buf_capacity(conn->outbuf), + (int)(now - conn->timestamp_lastwritten)); } circuit_dump_by_conn(conn, severity); /* dump info about all the circuits using this conn */ } |