From cc0b19888d688ed50f5e4bce40bc5017e23d274d Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 6 May 2005 08:32:37 +0000 Subject: log buffer sizes on kill -usr1 too. svn:r4180 --- src/or/main.c | 9 ++++++--- 1 file 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 */ } -- cgit v1.2.3-54-g00ecf