aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-07-03 03:40:47 +0000
committerRoger Dingledine <arma@torproject.org>2003-07-03 03:40:47 +0000
commit75440d08c2fecb4d658b8ecf39261513ef4b226f (patch)
treed2616cef593460e955abc9c86ecdce019eae08de /src/or/circuit.c
parent300984c05773084b3a70de88c8deedd8723645e7 (diff)
downloadtor-75440d08c2fecb4d658b8ecf39261513ef4b226f.tar
tor-75440d08c2fecb4d658b8ecf39261513ef4b226f.tar.gz
fix many bugs in package_window handling
svn:r363
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r--src/or/circuit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index eab3d7890..98f0b1443 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -405,9 +405,10 @@ void circuit_resume_edge_reading(circuit_t *circ, int edge_type, crypt_path_t *l
(edge_type == EDGE_AP && conn->package_window > 0 && conn->cpath_layer == layer_hint)) {
connection_start_reading(conn);
connection_package_raw_inbuf(conn); /* handle whatever might still be on the inbuf */
+ if(circuit_consider_stop_edge_reading(circ, edge_type, layer_hint))
+ return;
}
}
- circuit_consider_stop_edge_reading(circ, edge_type, layer_hint);
}
/* returns 1 if the window is empty, else 0. If it's empty, tell edge conns to stop reading. */