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/connection_or.c | |
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/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 6b276cc3a1..445335b43a 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -583,6 +583,9 @@ connection_or_flushed_some(or_connection_t *conn) { size_t datalen; + /* The channel will want to update its estimated queue size */ + channel_update_xmit_queue_size(TLS_CHAN_TO_BASE(conn->chan)); + /* If we're under the low water mark, add cells until we're just over the * high water mark. */ datalen = connection_get_outbuf_len(TO_CONN(conn)); |