aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-08 20:18:15 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-08 20:18:15 +0000
commit059148f5880de62e29ec63f5ca17cecc5767dfa1 (patch)
tree9964583eafd2d621646971ed2823491e0f2ee3a6 /src/or/main.c
parent6c4d43c724ff44bc68e52a7bfcd5b79cbbec42d7 (diff)
downloadtor-059148f5880de62e29ec63f5ca17cecc5767dfa1.tar
tor-059148f5880de62e29ec63f5ca17cecc5767dfa1.tar.gz
Only caches download network-status for now, and they use a different strategy. Add an element to connection_t to remember what we are downloading, and a function to recognize our own fingerprint.
svn:r4944
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 08f8d26a1..8cbf2d7e6 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -732,7 +732,12 @@ run_scheduled_events(time_t now)
!we_are_hibernating())
consider_testing_reachability();
- update_networkstatus_downloads();
+ if (server_mode(options) && options->DirPort)
+ update_networkstatus_cache_downloads(now);
+ /* XXXX Disabled until 0.1.1.6 is out: only servers need networkstatus.
+ else
+ update_networkstatus_client_downloads(now);
+ */
}
/** 3a. Every second, we examine pending circuits and prune the