Forráskód Böngészése

r15960@catbus: nickm | 2007-10-19 12:30:17 -0400
Make authority_certs_fetch_missing() honor should_delay_dir_fetches()


svn:r12048

Nick Mathewson 17 éve
szülő
commit
53f9fe7dc5
2 módosított fájl, 6 hozzáadás és 2 törlés
  1. 3 2
      doc/TODO
  2. 3 0
      src/or/routerlist.c

+ 3 - 2
doc/TODO

@@ -53,11 +53,12 @@ Things we'd like to do in 0.2.0.x:
     - Delay consensus download retry when there's a unverified consensus we're
       downloading the certs to check
       - But don't delay forever.
-    - Make new download types comply with should_delay_dir_fetches()
+    o Make new download types comply with should_delay_dir_fetches()
     - When DownloadExtraInfo is turned on for the first time, don't flip
       out and download the ancient history of the universe.
     o List IP addresses in certificates?
-    - Make the address in votes be an actual IP address.
+    o Make the address in votes be an actual IP address.
+    - Change 'mismatched digest' message to first check timestamps instead.
 
   - Proposals:
     . 101: Voting on the Tor Directory System (plus 103)

+ 3 - 0
src/or/routerlist.c

@@ -295,6 +295,9 @@ authority_certs_fetch_missing(networkstatus_vote_t *status, time_t now)
   smartlist_t *missing_digests = smartlist_create();
   char *resource = NULL;
 
+  if (should_delay_dir_fetches(get_options()))
+    return;
+
   list_pending_downloads(pending, DIR_PURPOSE_FETCH_CERTIFICATE, "fp/");
   if (status) {
     SMARTLIST_FOREACH(status->voters, networkstatus_voter_info_t *, voter,