[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] stop calling assert_connection_ok(conn, time(NULL)) on ever...



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)) {