[tor-bugs] #24797 [Core Tor/Tor]: Add an option that makes Tor use fewer connections

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Apr 13 22:03:14 UTC 2018


#24797: Add an option that makes Tor use fewer connections
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:  neel
     Type:  enhancement                          |         Status:
                                                 |  assigned
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  unspecified
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tor-relay, tor-dos,                  |  Actual Points:
  034-triage-20180328, 034-removed-20180328      |
Parent ID:                                       |         Points:  1
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by teor):

 Replying to [comment:12 neel]:
 > I am still interested in this ticket.
 >
 > I noticed the following options in `connection_check_oos()`:
 >
 > {{{
 > get_options()->ConnLimit_high_thresh
 > get_options()->ConnLimit_
 > get_options()->ConnLimit_low_thresh
 > }}}
 >
 > It seems that the threshold is determined from these values. Should I
 modify these values directly should my proposed option (connection limit)
 be set, and calculates a threshold based on the set value rather than the
 number of file descriptors?
 > …

 If you add another torrc option MaxSockets, then use min(MaxSockets,
 ConnLimit_) instead of ConnLimit_, all the rest of the code should just
 work.

 Using min(MaxSockets, ConnLimit_) allows us to override the OS when its
 limit is too high, and it makes sure we don't ever go over the OS limit.

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


More information about the tor-bugs mailing list