[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] don"t check for reachability, and don"t whine about it, whi...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] don"t check for reachability, and don"t whine about it, whi...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Mon, 28 Mar 2005 22:48:33 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 28 Mar 2005 22:48:56 -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:
don't check for reachability, and don't whine about it, while we're
hibernating.
Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.477
retrieving revision 1.478
diff -u -d -r1.477 -r1.478
--- main.c 27 Mar 2005 11:52:15 -0000 1.477
+++ main.c 29 Mar 2005 03:48:31 -0000 1.478
@@ -714,7 +714,8 @@
/* also, check religiously for reachability, if it's within the first
* 20 minutes of our uptime. */
if (server_mode(options) &&
- stats_n_seconds_working < TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT)
+ stats_n_seconds_working < TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT &&
+ !we_are_hibernating())
consider_testing_reachability();
}
@@ -811,6 +812,7 @@
stats_prev_global_write_bucket = global_write_bucket;
if (server_mode(options) &&
+ !we_are_hibernating() &&
!check_whether_ports_reachable() &&
stats_n_seconds_working / TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT !=
(stats_n_seconds_working+seconds_elapsed) /