[tor-bugs] #3457 [Tor Client]: Expose more circuit state-change events to controllers

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Jan 10 23:24:13 UTC 2012


#3457: Expose more circuit state-change events to controllers
---------------------------+------------------------------------------------
 Reporter:  rransom        |          Owner:  rransom           
     Type:  enhancement    |         Status:  needs_review      
 Priority:  normal         |      Milestone:  Tor: 0.2.3.x-final
Component:  Tor Client     |        Version:                    
 Keywords:  small-feature  |         Parent:                    
   Points:                 |   Actualpoints:                    
---------------------------+------------------------------------------------

Comment(by nickm):

 notes to myself for revisions to make:

   * rename circuit_change_purpose to circuit_set_purpose for consistency
   * Use smartlist_add_asprintf() in circuit_describe_status_for_controller
   * Come up with a better name for circ2 if possible
   * nuke the explicit enumeration-value setting in
 circuit_status_2_event_t
   * For formatting time, "sec,usec" is pretty horrible and not what we do
 elsewhere in tor or in control-spec. Either ISOTime or some spaceless
 variant thereupon would be better. (in
 circuit_describe_status_for_controller()).  If for some reason we can't
 use ISOTime (or some spaceless variant etc), then let's use an actual
 decimal fraction.
   * void* arg2 is making me uncomfortable.  If that's only a timeval for
 now, let's make it a timeval. If it really has to be lots of other things,
 let's make typechecking wrapper functions as needed.

 rransom, do you have any suggestions for a better name for CIRC2?

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


More information about the tor-bugs mailing list