backport r17920: bridge relays don't fetch descriptors much

svn:r17947
This commit is contained in:
Roger Dingledine 2009-01-06 07:22:07 +00:00
parent b28329f46e
commit 33d22e0f86
3 changed files with 10 additions and 2 deletions

View File

@ -11,6 +11,13 @@ Changes in version 0.2.0.33 - 2009-01-??
combination. Now that we can have multiple OR connections between
the same ORs, it is no longer possible to use addr:port to uniquely
identify a connection.
- Bridge relays that had DirPort set to 0 would stop fetching
descriptors shortly after startup, and then briefly resume
after a new bandwidth test and/or after publishing a new bridge
descriptor. Bridge users that try to bootstrap from them would
get a recent networkstatus but would get descriptors from up to
18 hours earlier, meaning most of the descriptors were obsolete
already. Reported by Tas; bugfix on 0.2.0.13-alpha.
o Minor bugfixes:
- Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug

View File

@ -5,7 +5,7 @@ description of the patch.)
Backport for 0.2.0:
o r17891: Fix a fun OpenBSD warning.
o r17892: Fix another fun OpenBSD warning.
- r17920: bridge relays don't fetch descriptors much
o r17920: bridge relays don't fetch descriptors much
Backport for 0.2.0 once better tested:
Xo r16621: Make some DNS code more robust (partial; see also libevent

View File

@ -1199,7 +1199,8 @@ directory_permits_controller_requests(or_options_t *options)
int
directory_too_idle_to_fetch_descriptors(or_options_t *options, time_t now)
{
return !options->DirPort && !options->FetchUselessDescriptors &&
return !directory_caches_dir_info(options) &&
!options->FetchUselessDescriptors &&
rep_hist_circbuilding_dormant(now);
}