mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
log buffer sizes on kill -usr1 too.
svn:r4180
This commit is contained in:
parent
7901c6e390
commit
cc0b19888d
1 changed files with 6 additions and 3 deletions
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue