[Tor-BSD] OpenBSD tor bugfix

Brian Callahan bcallah at devio.us
Sat Jun 15 18:43:21 EDT 2013

Hi tor-bsd --

I just noticed this commit from tor. If you're running tor on OpenBSD 
(and perhaps on other BSDs as well) you may want to track this diff:

Fix (Open?)BSD fast-connect bug with optimistic data.

There's an assertion failure that can occur if a connection has
optimistic data waiting, and then the connect() call returns 0 on the
first attempt (rather than -1 and EINPROGRESS).  That latter behavior
from connect() appears to be an (Open?)BSDism when dealing with remote
addresses in some cases. (At least, I've only seen it reported with
the BSDs under libevent, even when the address was  And
we've only seen this problem in Tor with OpenBSD.)

Fixes bug 9017; bugfix on, which first introduced
optimistic data. (Although you could also argue that the commented-out
connection_start_writing in 155c9b80 back in 2002 is the real source
of the issue.)



More information about the Tor-BSD mailing list