[tor-bugs] #21394 [Core Tor/Tor]: connection timeouts are affecting Tor Browser usability

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 3 01:48:21 UTC 2017


#21394: connection timeouts are affecting Tor Browser usability
-------------------------------------------------+-------------------------
 Reporter:  arthuredelstein                      |          Owner:  (none)
     Type:  defect                               |         Status:  new
 Priority:  Very High                            |      Milestone:  Tor:
                                                 |  0.3.3.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tbb-performance, tbb-usability,      |  Actual Points:
  performance, tbb-needs                         |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by arthuredelstein):

 Sebastian created a tor patch to apply settings based on Dhalgren's:
 {{{
 index 078bde3ef..08ed219d2 100644
 --- a/src/or/dns.c
 +++ b/src/or/dns.c
 @@ -1439,13 +1439,19 @@ configure_nameservers(int force)
  #define SET(k,v)  evdns_base_set_option(the_evdns_base, (k), (v))

    if (evdns_base_count_nameservers(the_evdns_base) == 1) {
 -    SET("max-timeouts:", "16");
 -    SET("timeout:", "10");
 +    SET("max-timeouts:", "255");
 +    SET("timeout:", "5");
    } else {
      SET("max-timeouts:", "3");
      SET("timeout:", "5");
    }

 +  // Elongate the queue of maximum inflight dns requests, so if a bunch
 +  // time out at the resolver (happens commonly with unbound) we won't
 +  // stall every other DNS request
 +  SET("max-inflight:", "8192");
 +  SET("attempts:", "1");
 +
    if (options->ServerDNSRandomizeCase)
      SET("randomize-case:", "1");
    else
 }}}
 gamambel applied this patch and ran tor. I ran my test and found no
 timeouts:
 https://arthuredelstein.net/tor/21394/exit_results_20171103_0137.json
 https://docs.google.com/spreadsheets/d/1ZORq3WlV8-VaTiqoQ4bn3dEN3wkb0z6HkOcrkrG8z7A/edit?usp=sharing

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21394#comment:45>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list