[tor-bugs] #22128 [Core Tor/Tor]: Refactor body of connection_dir_client_reached_eof()

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue May 2 23:36:50 UTC 2017


#22128: Refactor body of connection_dir_client_reached_eof()
--------------------------+------------------------------------
 Reporter:  nickm         |          Owner:  nickm
     Type:  defect        |         Status:  merge_ready
 Priority:  Medium        |      Milestone:  Tor: 0.3.1.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:  .1
Parent ID:  #21650        |         Points:  .1
 Reviewer:                |        Sponsor:  Sponsor4
--------------------------+------------------------------------
Changes (by catalyst):

 * status:  needs_review => merge_ready


Comment:

 Looks good to me.  I do see some places that could use further
 refactoring, like some of the complicated logging calls.  Also the if-else
 chains dealing with stringifying compression methods could go into a
 switch-statement in a helper function.

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


More information about the tor-bugs mailing list