diff options
author | Andrea Shepard <andrea@torproject.org> | 2013-11-05 00:30:02 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 22:49:03 -0700 |
commit | 8852a1794cfa9eb5dae494f5d85242d8fd6955fc (patch) | |
tree | 266daad8c0e03603a5e8e473cafaa8c2166d7832 /src/or/or.h | |
parent | 7674308f622904bc5a4cff5e7cb4d0f22fbf84d7 (diff) | |
download | tor-8852a1794cfa9eb5dae494f5d85242d8fd6955fc.tar.gz tor-8852a1794cfa9eb5dae494f5d85242d8fd6955fc.zip |
Track total queue size per channel, with overhead estimates, and global queue total
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index bdcb29ea11..320931d471 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1529,6 +1529,12 @@ typedef struct or_connection_t { /** Last emptied write token bucket in msec since midnight; only used if * TB_EMPTY events are enabled. */ uint32_t write_emptied_time; + + /* + * Count the number of bytes flushed out on this orconn, and the number of + * bytes TLS actually sent - used for overhead estimation for scheduling. + */ + uint64_t bytes_xmitted, bytes_xmitted_by_tls; } or_connection_t; /** Subtype of connection_t for an "edge connection" -- that is, an entry (ap) |