summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-11-14 04:45:16 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 22:49:03 -0700
commit4f567c8cc8cd68a8ca9bb93fc57d518d7eb55cf0 (patch)
treeccb789e4afe579f7793f74211de58f5b8be6ec08 /src/or
parentf314d9509cae7acb9a692895c709e7771c6321f0 (diff)
downloadtor-4f567c8cc8cd68a8ca9bb93fc57d518d7eb55cf0.tar.gz
tor-4f567c8cc8cd68a8ca9bb93fc57d518d7eb55cf0.zip
Let the new scheduler handle writes
Diffstat (limited to 'src/or')
-rw-r--r--src/or/relay.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 2c16e4acca..b653616c2c 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -2871,16 +2871,6 @@ append_cell_to_circuit_queue(circuit_t *circ, channel_t *chan,
/* New way: mark this as having waiting cells for the scheduler */
scheduler_channel_has_waiting_cells(chan);
-
- /* TODO remove this once scheduler does it */
- if (!channel_has_queued_writes(chan)) {
- /* There is no data at all waiting to be sent on the outbuf. Add a
- * cell, so that we can notice when it gets flushed, flushed_some can
- * get called, and we can start putting more data onto the buffer then.
- */
- log_debug(LD_GENERAL, "Primed a buffer.");
- channel_flush_from_first_active_circuit(chan, 1);
- }
}
/** Append an encoded value of <b>addr</b> to <b>payload_out</b>, which must