[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8402: avoid thrashing the bandwidth exercise when we change IPs a (in tor/trunk: doc src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r8402: avoid thrashing the bandwidth exercise when we change IPs a (in tor/trunk: doc src/or)
- From: arma@xxxxxxxx
- Date: Fri, 15 Sep 2006 14:03:53 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 15 Sep 2006 14:04:02 -0400
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: arma
Date: 2006-09-15 14:03:53 -0400 (Fri, 15 Sep 2006)
New Revision: 8402
Modified:
tor/trunk/doc/TODO
tor/trunk/src/or/router.c
Log:
avoid thrashing the bandwidth exercise when we change IPs a lot.
(we avoid simply by not doing any new tests when we change IPs --
it looks like we retain our previous bandwidth estimates, so there's
no need to do new exercise. though in some cases new exercises may
still be useful. one day we'll do something smarter.)
Modified: tor/trunk/doc/TODO
===================================================================
--- tor/trunk/doc/TODO 2006-09-15 06:06:09 UTC (rev 8401)
+++ tor/trunk/doc/TODO 2006-09-15 18:03:53 UTC (rev 8402)
@@ -18,7 +18,8 @@
by default, if it works?"
Items for 0.1.2.x, real soon now:
-R - avoid thrashing the bandwidth exercise when we change IPs a lot
+R o avoid thrashing the bandwidth exercise when we change IPs a lot
+ (we avoid simply by not doing any new tests when we change IPs.)
- When we've been idle a long time, we stop fetching server
descriptors. When we then get a socks request, we build circuits
immediately using whatever descriptors we have, rather than waiting
Modified: tor/trunk/src/or/router.c
===================================================================
--- tor/trunk/src/or/router.c 2006-09-15 06:06:09 UTC (rev 8401)
+++ tor/trunk/src/or/router.c 2006-09-15 18:03:53 UTC (rev 8402)
@@ -490,7 +490,7 @@
stats_n_seconds_working = 0;
can_reach_or_port = 0;
can_reach_dir_port = 0;
- reset_bandwidth_test();
+// reset_bandwidth_test();
mark_my_descriptor_dirty();
}