Monkey patch all the code inside neutron/cmd/eventlet/...
The directory is initially empty. We are going to maintain entry points for all services and agents that run in eventlet mode in this directory, and monkey patch them from there, instead of spreading monkey_patch() calls throughout the library. This will guarantee us that all the services that are maintained in this part of the tree monkey patch stdlib properly, before doing any other imports. This is also useful to track which parts of the project require eventlet. This will later help to migrate services one by one out of eventlet to real threads in case we decide to move this direction. Related-Bug: #1417386 Related-Bug: #1418541 Change-Id: I2bc16ca4422c01d64e9fac4910214dbb0d0326ff
This commit is contained in:
parent
ea76d10e74
commit
3711573151
14
neutron/cmd/eventlet/__init__.py
Normal file
14
neutron/cmd/eventlet/__init__.py
Normal file
@ -0,0 +1,14 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import eventlet
|
||||
eventlet.monkey_patch()
|
Loading…
x
Reference in New Issue
Block a user