aboutsummaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-05-20 06:53:10 +0000
committerRoger Dingledine <arma@torproject.org>2003-05-20 06:53:10 +0000
commit1c6def292b8551495660bf5dc3477e3d634ed202 (patch)
tree768e2cd5c01da3f0c5f4cfba96f13c12c2ea0606 /src/or/command.c
parent39e9d79038f6075ec59fdafba811ffa406796b5c (diff)
downloadtor-1c6def292b8551495660bf5dc3477e3d634ed202.tar
tor-1c6def292b8551495660bf5dc3477e3d634ed202.tar.gz
remove dead code
circuits no longer queue more cells when the windows are empty -- they simply don't package it from the buffer if they're not going to want it. we can restore this code later if we need to resume queueing. svn:r294
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 9c7ca112a..096bcfd7d 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -172,38 +172,6 @@ void command_process_relay_cell(cell_t *cell, connection_t *conn) {
return;
}
-#if 0
- if(cell->aci == circ->p_aci) { /* it's an outgoing cell */
- if(--circ->p_receive_circwindow < 0) { /* is it less than 0 after decrement? */
- log(LOG_INFO,"command_process_relay_cell(): Too many relay cells for out circuit (aci %d). Closing.", circ->p_aci);
- circuit_close(circ);
- return;
- }
- log(LOG_DEBUG,"command_process_relay_cell(): p_receive_circwindow for aci %d is %d.",circ->p_aci,circ->p_receive_circwindow);
- }
-
- if(cell->aci == circ->n_aci) { /* it's an ingoing cell */
- if(--circ->n_receive_circwindow < 0) { /* is it less than 0 after decrement? */
- log(LOG_INFO,"command_process_relay_cell(): Too many relay cells for in circuit (aci %d). Closing.", circ->n_aci);
- circuit_close(circ);
- return;
- }
- log(LOG_DEBUG,"command_process_relay_cell(): n_receive_circwindow for aci %d is %d.",circ->n_aci,circ->n_receive_circwindow);
- }
-#endif
-
-#if 0
- if(circ->state == CIRCUIT_STATE_ONION_WAIT) {
- log(LOG_WARNING,"command_process_relay_cell(): circuit in onion_wait. Dropping relay cell.");
- return;
- }
- if(circ->state == CIRCUIT_STATE_OR_WAIT) {
- log(LOG_WARNING,"command_process_relay_cell(): circuit in or_wait. Dropping relay cell.");
- return;
- }
-#endif
- /* circ->p_conn and n_conn are only null if we're at an edge point with no connections yet */
-
if(cell->aci == circ->p_aci) { /* it's an outgoing cell */
cell->aci = circ->n_aci; /* switch it */
if(circuit_deliver_relay_cell(cell, circ, CELL_DIRECTION_OUT, conn->cpath_layer) < 0) {