aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-08-23 10:06:46 +0000
committerRoger Dingledine <arma@torproject.org>2003-08-23 10:06:46 +0000
commit33b0569fba5a098e3aa25c50397ca59a0d63bb4a (patch)
tree3a401272907bf332a8c44fdc93d8cf20aae93e9b /src/or
parentbb1584274cb07110020d24df5b8fc623ebc1d23d (diff)
downloadtor-33b0569fba5a098e3aa25c50397ca59a0d63bb4a.tar
tor-33b0569fba5a098e3aa25c50397ca59a0d63bb4a.tar.gz
remove duplicate packagewindow-checking code,
see if we can induce that segfault i just saw more often svn:r407
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 3b3ff9700..93df99f7e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -620,13 +620,14 @@ repeat_connection_package_raw_inbuf:
}
assert(conn->package_window > 0);
- if(--conn->package_window <= 0) { /* is it 0 after decrement? */
- connection_stop_reading(conn);
- log_fn(LOG_DEBUG,"conn->package_window reached 0.");
- circuit_consider_stop_edge_reading(circ, conn->type, conn->cpath_layer);
- return 0; /* don't process the inbuf any more */
- }
- log_fn(LOG_DEBUG,"conn->package_window is %d",conn->package_window);
+ conn->package_window--;
+// if(--conn->package_window <= 0) { /* is it 0 after decrement? */
+// connection_stop_reading(conn);
+// log_fn(LOG_DEBUG,"conn->package_window reached 0.");
+// circuit_consider_stop_edge_reading(circ, conn->type, conn->cpath_layer);
+// return 0; /* don't process the inbuf any more */
+// }
+ log_fn(LOG_DEBUG,"conn->package_window is now %d",conn->package_window);
/* handle more if there's more, or return 0 if there isn't */
goto repeat_connection_package_raw_inbuf;