]> git.ipfire.org Git - thirdparty/tor.git/commit
Disable IOCP and retry event_base_new_with_config once on failure
authorNick Mathewson <nickm@torproject.org>
Mon, 14 Nov 2011 23:12:29 +0000 (18:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 14 Nov 2011 23:12:29 +0000 (18:12 -0500)
commit7be50c26e8b2ec0bd0121d5e8b2dc55de977cf5a
treed6f8502a81e0bd4b43791112d0e40a6fcd80a878
parentcf8117136c1b206e727d582a4c378ce53e058414
Disable IOCP and retry event_base_new_with_config once on failure

This is a fancier bug4457 workaround for 0.2.3.  In 0.2.2, we could
just tell Libevent "Don't enable locking!" so it wouldn't try to make
the event_base notifiable.  But for IOCP, we need a notifiable base.
(Eventually, we'll want a notifiable base for other stuff, like
multithreaded crypto.)  So the solution is to try a full-featured
initialization, and then retry with all the options turned off if that
fails.
changes/bug4457_master [new file with mode: 0644]
src/common/compat_libevent.c