]> granicus.if.org Git - libevent/commit
When working without a current event base, don't try to use IOCP listeners
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Feb 2010 05:27:35 +0000 (00:27 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Feb 2010 05:27:35 +0000 (00:27 -0500)
commitcb52838fc501b1c18eec6bad367d29e87654d45b
treedc683ab568dd455e01db7df98cb43d29d2b40bed
parent32c6f1bacdb40f0d1b57aa6e8b2ce4eaf3979d08
When working without a current event base, don't try to use IOCP listeners

This fixes a bug turned up with the http unit tests, where we create
the evhttp object using an implicit (NULL) event_base.  This failed
pretty badly when we tried to use IOCP-based listeners.  We could
hunt for the current base from inside listener.c in the future, or
get the iocp base some other way, but for now this is probably the safest
solution.
listener.c