[tor-bugs] #6177 [Tor Relay]: Refactor rend_service_introduce()

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Jul 11 02:25:33 UTC 2012


#6177: Refactor rend_service_introduce()
-----------------------+----------------------------------------------------
 Reporter:  andrea     |          Owner:                    
     Type:  task       |         Status:  needs_review      
 Priority:  normal     |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor Relay  |        Version:                    
 Keywords:             |         Parent:  #6313             
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------

Comment(by andrea):

 I added a replaycache_add_test_and_elapsed() function for the replay cache
 which provides the elapsed time since the last time the digest in question
 was seen when there's a hit, to facilitate the log messages in that case
 in rend_service_introduce().

 I've also added a counter for INTRODUCE2 cells seen, since the old
 implementation of intro_point_accepted_intro_count() relied on the size of
 the accepted_intro_rsa_parts digest map for that, which will not work
 reliably now that accepted_intro_rsa_parts is a replaycache_t and ages out
 old values.

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


More information about the tor-bugs mailing list