Use eventlet.patcher instead of eventlet.util for monkey-patching
Change-Id: I31542fa2e77614068a0d36eda9345fd24ef307c1
This commit is contained in:
parent
596efb9485
commit
6e0a3cc088
|
@ -122,10 +122,7 @@ def serve_from_child(sock, config, controller_pid):
|
|||
elif threads != 1:
|
||||
print "(%s) not using threads, installing eventlet cooperation monkeypatching" % (
|
||||
os.getpid(), )
|
||||
from eventlet import util
|
||||
util.wrap_socket_with_coroutine_socket()
|
||||
#util.wrap_pipes_with_coroutine_pipes()
|
||||
#util.wrap_threading_local_with_coro_local()
|
||||
eventlet.patcher.monkey_patch(all=False, socket=True)
|
||||
|
||||
host, port = sock.getsockname()
|
||||
|
||||
|
|
Loading…
Reference in New Issue