Commit 17d27814 authored by Denis Bilenko's avatar Denis Bilenko

call WSAStartup() on windows to prevent WSANOTINITIALISED errors

- the error was only seen with libevent-2 but not with libevent-1.4
parent 5ce42539
......@@ -31,6 +31,12 @@ __all__ = ['Greenlet',
'reinit']
import sys
if sys.platform == 'win32':
__import__('socket') # trigger WSAStartup call
del sys
from gevent import core
core.EV_TIMEOUT = 0x01
core.EV_READ = 0x02
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment