Merge "Remove args(os=False) in monkey_patch"
This commit is contained in:
@@ -22,7 +22,7 @@ inline callbacks.
|
||||
"""
|
||||
|
||||
import eventlet # noqa
|
||||
eventlet.monkey_patch(os=False)
|
||||
eventlet.monkey_patch()
|
||||
|
||||
import abc
|
||||
import copy
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
|
||||
import eventlet
|
||||
|
||||
eventlet.monkey_patch(os=False)
|
||||
eventlet.monkey_patch()
|
||||
|
||||
@@ -1297,9 +1297,13 @@ def generate_hostid(host, project_id):
|
||||
def monkey_patch():
|
||||
if debugger.enabled():
|
||||
# turn off thread patching to enable the remote debugger
|
||||
eventlet.monkey_patch(os=False, thread=False)
|
||||
else:
|
||||
eventlet.monkey_patch(thread=False)
|
||||
elif os.name == 'nt':
|
||||
# for nova-compute running on Windows(Hyper-v)
|
||||
# pipes don't support non-blocking I/O
|
||||
eventlet.monkey_patch(os=False)
|
||||
else:
|
||||
eventlet.monkey_patch()
|
||||
|
||||
# NOTE(rgerganov): oslo.context is storing a global thread-local variable
|
||||
# which keeps the request context for the current thread. If oslo.context
|
||||
|
||||
Reference in New Issue
Block a user