From: Nick Mathewson Date: Tue, 15 Dec 2015 18:19:18 +0000 (-0500) Subject: Merge remote-tracking branch 'teor/feature17327-v4' X-Git-Tag: tor-0.2.8.1-alpha~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa4be914f06baa92857de201a212b9fc9856bdb1;p=thirdparty%2Ftor.git Merge remote-tracking branch 'teor/feature17327-v4' --- aa4be914f06baa92857de201a212b9fc9856bdb1 diff --cc doc/tor.1.txt index 562fed931b,3ef5674d2b..f173a97aa3 --- a/doc/tor.1.txt +++ b/doc/tor.1.txt @@@ -358,20 -358,10 +358,20 @@@ GENERAL OPTION DataDirectory. If the option is set to 1, make the DataDirectory readable by the default GID. (Default: 0) - [[FallbackDir]] **FallbackDir** __address__:__port__ orport=__port__ id=__fingerprint__ [weight=__num__]:: + [[FallbackDir]] **FallbackDir** __address__:__port__ orport=__port__ id=__fingerprint__ [weight=__num__] [ipv6=__address__:__orport__]:: When we're unable to connect to any directory cache for directory info - (usually because we don't know about any yet) we try a FallbackDir. - By default, the directory authorities are also FallbackDirs. + (usually because we don't know about any yet) we try a directory authority. + Clients also simultaneously try a FallbackDir, to avoid hangs on client + startup if a directory authority is down. Clients retry FallbackDirs more + often than directory authorities, to reduce the load on the directory + authorities. + By default, the directory authorities are also FallbackDirs. Specifying a + FallbackDir replaces Tor's default hard-coded FallbackDirs (if any). + +[[UseDefaultFallbackDirs]] **UseDefaultFallbackDirs** **0**|**1**:: + Use Tor's default hard-coded FallbackDirs (if any). (When a + FallbackDir line is present, it replaces the hard-coded FallbackDirs, + regardless of the value of UseDefaultFallbackDirs.) (Default: 1) [[DirAuthority]] **DirAuthority** [__nickname__] [**flags**] __address__:__port__ __fingerprint__:: Use a nonstandard authoritative directory server at the provided address diff --cc src/test/test_config.c index 1d25f8693f,580dae4167..0137d1c49a --- a/src/test/test_config.c +++ b/src/test/test_config.c @@@ -3326,8 -3383,12 +3496,13 @@@ test_config_use_multiple_directories(vo { #name, test_config_ ## name, flags, NULL, NULL } struct testcase_t config_tests[] = { + CONFIG_TEST(adding_trusted_dir_server, TT_FORK), + CONFIG_TEST(adding_fallback_dir_server, TT_FORK), + CONFIG_TEST(parsing_trusted_dir_server, 0), + CONFIG_TEST(parsing_fallback_dir_server, 0), + CONFIG_TEST(adding_default_trusted_dir_servers, TT_FORK), CONFIG_TEST(adding_dir_servers, TT_FORK), + CONFIG_TEST(default_dir_servers, TT_FORK), CONFIG_TEST(resolve_my_address, TT_FORK), CONFIG_TEST(addressmap, 0), CONFIG_TEST(parse_bridge_line, 0),