diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-20 16:44:16 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-11-22 15:37:59 -0500 |
commit | 46a0709261471fe7730b1c01351e216a2dbaf785 (patch) | |
tree | 52dbc6501bd857258156b179b59839433a19dda1 /src/test/test_scheduler.c | |
parent | d165f0fd30bc9823152dad6769afab0afae2ea6d (diff) | |
download | tor-46a0709261471fe7730b1c01351e216a2dbaf785.tar.gz tor-46a0709261471fe7730b1c01351e216a2dbaf785.zip |
channel: Remove incoming/outgoing queue
For the rationale, see ticket #23709.
This is a pretty massive commit. Those queues were everywhere in channel.c and
it turns out that it was used by lots of dead code.
The channel subsystem *never* handles variable size cell (var_cell_t) or
unpacked cells (cell_t). The variable ones are only handled in channeltls and
outbound cells are always packed from the circuit queue so this commit removes
code related to variable and unpacked cells.
However, inbound cells are unpacked (cell_t), that is untouched and is handled
via channel_process_cell() function.
In order to make the commit compile, test have been modified but not passing
at this commit. Also, many tests have been removed but better improved ones
get added in future commits.
This commit also adds a XXX: which indicates that the handling process of
outbound cells isn't fully working. This as well is fixed in a future commit.
Finally, at this commit, more dead code remains, it will be cleanup in future
commits.
Fixes #23709
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_scheduler.c')
-rw-r--r-- | src/test/test_scheduler.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/test/test_scheduler.c b/src/test/test_scheduler.c index d679d7cfe1..d861b05b82 100644 --- a/src/test/test_scheduler.c +++ b/src/test/test_scheduler.c @@ -299,10 +299,6 @@ channel_more_to_flush_mock(channel_t *chan) flush_mock_channel_t *found_mock_ch = NULL; - /* Check if we have any queued */ - if (! TOR_SIMPLEQ_EMPTY(&chan->incoming_queue)) - return 1; - SMARTLIST_FOREACH_BEGIN(chans_for_flush_mock, flush_mock_channel_t *, flush_mock_ch) { |