diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-15 12:00:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-15 12:00:50 -0400 |
commit | 0f4f40b70fe6ea16a43940f86db767e1a16a4f6e (patch) | |
tree | 59ba8fa1332fa127ade5882da3836809bd540fea /src/or/channel.c | |
parent | 962b0b849bf0c2fcca387e334985b349a255de0a (diff) | |
parent | 06500171434dca543e3daf74ce7033a0aef3d199 (diff) | |
download | tor-0f4f40b70fe6ea16a43940f86db767e1a16a4f6e.tar.gz tor-0f4f40b70fe6ea16a43940f86db767e1a16a4f6e.zip |
Merge remote-tracking branch 'dgoulet/ticket12541_032_02'
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index 56eeccc2a7..44152ff457 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -2603,8 +2603,8 @@ channel_flush_cells(channel_t *chan) * available. */ -int -channel_more_to_flush(channel_t *chan) +MOCK_IMPL(int, +channel_more_to_flush, (channel_t *chan)) { tor_assert(chan); @@ -4841,8 +4841,6 @@ channel_update_xmit_queue_size(channel_t *chan) U64_FORMAT ", new size is " U64_FORMAT, U64_PRINTF_ARG(adj), U64_PRINTF_ARG(chan->global_identifier), U64_PRINTF_ARG(estimated_total_queue_size)); - /* Tell the scheduler we're increasing the queue size */ - scheduler_adjust_queue_size(chan, 1, adj); } } else if (queued < chan->bytes_queued_for_xmit) { adj = chan->bytes_queued_for_xmit - queued; @@ -4865,8 +4863,6 @@ channel_update_xmit_queue_size(channel_t *chan) U64_FORMAT ", new size is " U64_FORMAT, U64_PRINTF_ARG(adj), U64_PRINTF_ARG(chan->global_identifier), U64_PRINTF_ARG(estimated_total_queue_size)); - /* Tell the scheduler we're decreasing the queue size */ - scheduler_adjust_queue_size(chan, -1, adj); } } } |