[tor-bugs] #7037 [Tor]: When we refuse a create cell due to onion queue length, we should say END_CIRC_REASON_RESOURCELIMIT

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Oct 3 23:58:15 UTC 2012


#7037: When we refuse a create cell due to onion queue length, we should say
END_CIRC_REASON_RESOURCELIMIT
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  normal     |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor        |        Version:                    
 Keywords:  tor-relay  |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------
 Right now in command_process_create_cell() when
 assign_onionskin_to_cpuworker() fails, we close the circuit with
 {{{
       circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_INTERNAL);
 }}}

 But in onion_pending_add() when we've got old onions, we close the circuit
 with
 {{{
     circuit_mark_for_close(TO_CIRCUIT(circ),
 END_CIRC_REASON_RESOURCELIMIT);
 }}}

 Since the primary reason assign_onionskin_to_cpuworker() fails is because
 onion_pending_add() hits the "ol_length >=
 get_options()->MaxOnionsPending" clause, I think we should change
 command_process_create_cell() to claim RESOURCELIMIT rather than INTERNAL
 in its destroy cell.

 And I think we should do this in 0.2.3 so the fix gets out in time to make
 a difference for the measurement scripts Mike has been playing with.

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


More information about the tor-bugs mailing list