[tor-bugs] #2001 [Tor Relay]: Reachability test for ORPort doesn't complete with --enable-bufferevents set

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Oct 12 19:58:37 UTC 2010


#2001: Reachability test for ORPort doesn't complete with --enable-bufferevents
set
-----------------------+----------------------------------------------------
 Reporter:  Sebastian  |       Owner:  nickm   
     Type:  defect     |      Status:  accepted
 Priority:  normal     |   Milestone:          
Component:  Tor Relay  |     Version:          
 Keywords:             |      Parent:          
-----------------------+----------------------------------------------------

Comment(by nickm):

 Indeed, we aren't generating END cells on linked connections.  The only
 way to get an BEV_EVENT_EOF out of a bufferevent_pair is to call
 bufferevent_flush on it, and the only way to get
 connection_edge_reached_eof() called with bufferevents is by generating a
 BEV_EVENT_EOF.

 Arguably, libevent's bufferevent pairs should also generate a
 BEV_EVENT_EOF when BEV_OPT_CLOSE_ON_FREE is set on them, and you free the
 other one of them.

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


More information about the tor-bugs mailing list