[tor-bugs] #24769 [Core Tor/Tor]: Increase client idle and connection timeouts to reduce network load

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Dec 31 01:16:34 UTC 2017


#24769: Increase client idle and connection timeouts to reduce network load
------------------------------+----------------------------------------
     Reporter:  teor          |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.2.x-final
    Component:  Core Tor/Tor  |    Version:  Tor: 0.3.1.1-alpha
     Severity:  Normal        |   Keywords:  tor-client, dos-resistance
Actual Points:                |  Parent ID:  #24716
       Points:  1             |   Reviewer:
      Sponsor:                |
------------------------------+----------------------------------------
 These changes were introduced in d5a151a in 0.3.1.1.

 Maybe we should:
 * revert the changes, or increase the values
 * make consensus parameters for them

 {{{
 +/** If we haven't yet decided on a good timeout value for circuit
 + * building, we close idle circuits aggressively so we can get more
 + * data points. */
 +#define IDLE_TIMEOUT_WHILE_LEARNING (1*60)
 }}}
 {{{
 -/** If we haven't yet decided on a good timeout value for circuit
 - * building, we close idles circuits aggressively so we can get more
 - * data points. */
 -#define IDLE_TIMEOUT_WHILE_LEARNING (10*60)
 }}}

 {{{
 +#define CONNTIMEOUT_CLIENTS_BASE 180 // 3 to 4.5 min
 +    timeout = CONNTIMEOUT_CLIENTS_BASE
 +        + crypto_rand_int(CONNTIMEOUT_CLIENTS_BASE/2);
 }}}

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


More information about the tor-bugs mailing list