
Revert "Fix HTTPServer.serve_forever blocking whole process"
This reverts commit 801e7dd65c
.
12 lines
234 B
Python
12 lines
234 B
Python
import sys
|
|
|
|
from eventlet import patcher
|
|
from eventlet.green import select
|
|
|
|
patcher.inject('selectors', globals(), ('select', select))
|
|
|
|
del patcher
|
|
|
|
if sys.platform != 'win32':
|
|
SelectSelector._select = staticmethod(select.select)
|