[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] stop calling assert_connection_ok(conn, time(NULL)) on ever...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] stop calling assert_connection_ok(conn, time(NULL)) on ever...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Sat, 25 Dec 2004 01:43:42 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 25 Dec 2004 01:44:01 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
main.c
Log Message:
stop calling assert_connection_ok(conn, time(NULL)) on every single
conn on every single loop.
Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.410
retrieving revision 1.411
diff -u -d -r1.410 -r1.411
--- main.c 25 Dec 2004 06:42:15 -0000 1.410
+++ main.c 25 Dec 2004 06:43:40 -0000 1.411
@@ -338,10 +338,10 @@
int retval;
conn = connection_array[i];
- assert_connection_ok(conn, time(NULL));
- assert_all_pending_dns_resolves_ok();
if (!conn->marked_for_close)
return; /* nothing to see here, move along */
+ assert_connection_ok(conn, time(NULL));
+ assert_all_pending_dns_resolves_ok();
log_fn(LOG_INFO,"Cleaning up connection (fd %d).",conn->s);
if (conn->s >= 0 && connection_wants_to_flush(conn)) {