[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] remove duplicate packagewindow-checking code,
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
connection.c
Log Message:
remove duplicate packagewindow-checking code,
see if we can induce that segfault i just saw more often
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- connection.c 20 Aug 2003 23:05:22 -0000 1.75
+++ connection.c 23 Aug 2003 10:06:46 -0000 1.76
@@ -620,13 +620,14 @@
}
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;