Merge "Remove args(os=False) in monkey_patch"

This commit is contained in:
Zuul
2019-01-18 18:19:45 +00:00
committed by Gerrit Code Review
3 changed files with 8 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ inline callbacks.
"""
import eventlet # noqa
eventlet.monkey_patch(os=False)
eventlet.monkey_patch()
import abc
import copy

View File

@@ -22,4 +22,4 @@
import eventlet
eventlet.monkey_patch(os=False)
eventlet.monkey_patch()

View File

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