Use eventlet.patcher instead of eventlet.util for monkey-patching

Change-Id: I31542fa2e77614068a0d36eda9345fd24ef307c1
This commit is contained in:
R. Tyler Ballance 2010-04-11 12:55:18 -07:00
parent 596efb9485
commit 6e0a3cc088
1 changed files with 1 additions and 4 deletions

View File

@ -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()