diff options
author | teor <teor2345@gmail.com> | 2017-09-11 13:56:35 +1000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-12 10:38:25 -0400 |
commit | 93a8ed3b83b5f20768562ca2aff4eba7aca667d8 (patch) | |
tree | 1d136ed005def091d9266d7985581c6fafe96180 /src/or/bridges.h | |
parent | 6370fb77c586e9ad68c7d1ecb95be36137cb9067 (diff) | |
download | tor-93a8ed3b83b5f20768562ca2aff4eba7aca667d8.tar.gz tor-93a8ed3b83b5f20768562ca2aff4eba7aca667d8.zip |
Make clients wait to refresh bridges when they have a recent descriptor
But when clients are just starting, make them try each bridge a few times
before giving up on it.
These changes make the bridge download schedules more explicit: before
17750, they relied on undocumented behaviour and specific schedule
entries. (And between 17750 and this fix, they were broken.)
Fixes 23347, not in any released version of tor.
Diffstat (limited to 'src/or/bridges.h')
-rw-r--r-- | src/or/bridges.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/bridges.h b/src/or/bridges.h index 3bfc782f9a..19341818f4 100644 --- a/src/or/bridges.h +++ b/src/or/bridges.h @@ -45,7 +45,7 @@ void bridge_add_from_config(struct bridge_line_t *bridge_line); void retry_bridge_descriptor_fetch_directly(const char *digest); void fetch_bridge_descriptors(const or_options_t *options, time_t now); void learned_bridge_descriptor(routerinfo_t *ri, int from_cache); -int any_bridge_descriptors_known(void); +MOCK_DECL(int, any_bridge_descriptors_known, (void)); const smartlist_t *get_socks_args_by_bridge_addrport(const tor_addr_t *addr, uint16_t port); |