[tor-bugs] #17218 [Tor]: Move most of "circuit_mark_for_close" into "circuit_free" or "circuit_close_all_marked".
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Oct 2 15:14:46 UTC 2015
#17218: Move most of "circuit_mark_for_close" into "circuit_free" or
"circuit_close_all_marked".
-------------------------+------------------------------------
Reporter: nickm | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Tor: 0.2.8.x-final
Component: Tor | Version:
Keywords: | Actual Points:
Parent ID: #16764 | Points:
Sponsor: SponsorS |
-------------------------+------------------------------------
The function "circuit_mark_for_close()" calls a few other functions
(notably circuit_build_failed() and
rend_client_report_intro_point_failure()) that call into the blob. If we
pull it out, we would chop the remaining blob in half.
We should use a system similar to the one we use for closeable connections
where we put closeable circuits on a list, rather than iterating over the
entire circuit list.
Doing this would remove more than half of the functions currently in the
blob as currently measured. (!)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17218>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list