[tor-bugs] #6175 [BridgeDB]: BridgeDB learns to choose a reasonable number of bridges to give out

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Jun 16 00:35:38 UTC 2012


#6175: BridgeDB learns to choose a reasonable number of bridges to give out
-------------------------+--------------------------------------------------
 Reporter:  aagbsn       |          Owner:  aagbsn
     Type:  enhancement  |         Status:  new   
 Priority:  normal       |      Milestone:        
Component:  BridgeDB     |        Version:        
 Keywords:               |         Parent:        
   Points:               |   Actualpoints:        
-------------------------+--------------------------------------------------
 BridgeDB should learn to give out a variable number of bridges based on
 the number of bridges available.

 For example, if a user requests bridges with transport foo, and there are
 only 20 bridges with this transport, BridgeDB could choose to give out 1
 bridge. If there are 21-100 bridges available, give out 2, and more than
 100: 3 bridges (or the distributor maximum)

 e.g.
 {{{
 if len(ring) < 20: n_bridges_per_answer = 1
 if 20 < len(ring) < 100: n_bridges_per_answer =
 min(2,DISTRIBUTOR_N_BRIDGES_PER_ANSWER)
 if len(ring) > 100: n_bridges_per_answer =
 DISTRIBUTOR_N_BRIDGES_PER_ANSWER
 }}}

 Or, BridgeDB could choose to avoid giving out more than 5 percent of
 bridges at a time; and return a minimum of 1 bridge and maximum of the
 configured DISTRIBUTOR_N_BRIDGES_PER_ANSWER

 e.g.
 {{{
 n_bridges_per_answer =  min(min(len(ring) *
 .05,1),DISTRIBUTOR_N_BRIDGES_PER_ANSWER)
 }}}

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


More information about the tor-bugs mailing list