From 37115731515895ea224b1dafd71250d0b002ad40 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Wed, 18 Feb 2015 11:42:43 +0100 Subject: [PATCH] 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 --- neutron/cmd/eventlet/__init__.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 neutron/cmd/eventlet/__init__.py diff --git a/neutron/cmd/eventlet/__init__.py b/neutron/cmd/eventlet/__init__.py new file mode 100644 index 00000000000..e8620504805 --- /dev/null +++ b/neutron/cmd/eventlet/__init__.py @@ -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()