summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-07-18 10:06:03 +0000
committerRoger Dingledine <arma@torproject.org>2007-07-18 10:06:03 +0000
commit50487c249ddfc45039880e29964c8dcaf8dfb8be (patch)
treef1c7e9becdce4cc5fc0086ed5ff7fc003821a23a /src/or/main.c
parent5c4d86f51285fe20a5b4bdb656ca3c9547dbe6ff (diff)
downloadtor-50487c249ddfc45039880e29964c8dcaf8dfb8be.tar.gz
tor-50487c249ddfc45039880e29964c8dcaf8dfb8be.zip
timeout and retry schedules for fetching bridge descriptors
svn:r10867
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c
index d379d9261c..0d0adf7007 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -881,16 +881,16 @@ run_scheduled_events(time_t now)
if (time_to_try_getting_descriptors < now) {
/* XXXX Maybe we should do this every 10sec when not enough info,
- * and every 60sec when we have enough info -NM */
+ * and every 60sec when we have enough info -NM Great idea -RD */
update_router_descriptor_downloads(now);
update_extrainfo_downloads(now);
+ if (options->UseBridges)
+ fetch_bridge_descriptors(now);
time_to_try_getting_descriptors = now + DESCRIPTOR_RETRY_INTERVAL;
}
if (time_to_reset_descriptor_failures < now) {
router_reset_descriptor_download_failures();
- if (options->UseBridges)
- fetch_bridge_descriptors(); /* XXX get this its own retry schedule -RD */
time_to_reset_descriptor_failures =
now + DESCRIPTOR_FAILURE_RESET_INTERVAL;
}