From dc4e710e27ed98c0e3d2e59ee07d133a6a3a203d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 20 Oct 2007 23:45:07 +0000 Subject: [PATCH] r15976@catbus: nickm | 2007-10-20 19:44:47 -0400 Prioritize fetching descriptors and networkstatus docs over fetching more extrainfo docs. svn:r12067 --- ChangeLog | 3 +++ src/or/routerlist.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3e5d3c0631..b9df1592cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -83,6 +83,9 @@ Changes in version 0.2.0.9-alpha - 2007-10-?? o Minor bugfixes (misc): - Make base32_decode() accept upper-case letters. Bugfix on 0.2.0.7-alpha. + - Don't try to download extrainfo documents when we're trying to + fetch enough directory info to build a circuit: having enough + info should get priority. o Minor bugfixes (performance): - Base64 decoding was actually showing up on our profile when parsing diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 6526d5f550..1317c6230f 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3801,6 +3801,8 @@ update_extrainfo_downloads(time_t now) return; if (should_delay_dir_fetches(options)) return; + if (!router_have_minimum_dir_info()) + return; pending = digestmap_new(); list_pending_descriptor_downloads(pending, 1); -- 2.47.3