diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-05-08 11:43:54 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-05-09 10:17:08 +0900 |
commit | 6d35bb8d0198900de0ae418d966112bb8ab4a09b (patch) | |
tree | 94bf99605d17f5ccc691d34e8abf44cc3644b401 | |
parent | 5a1da545bfcec765c546c81f98c9506a146a6cc8 (diff) |
lib/hub: Workaround for issue of eventlet
This patch adopts the workaround which is discussing on the eventlet
team at the following:
https://github.com/eventlet/eventlet/issues/401
This workaround is suggested by Raymond Burkholder.
Suggested-by: Raymond Burkholder <ray@oneunified.net>
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/hub.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/lib/hub.py b/ryu/lib/hub.py index 7838a0c6..a4f6118e 100644 --- a/ryu/lib/hub.py +++ b/ryu/lib/hub.py @@ -29,6 +29,10 @@ LOG = logging.getLogger('ryu.lib.hub') if HUB_TYPE == 'eventlet': import eventlet + # HACK: + # sleep() is the workaround for the following issue. + # https://github.com/eventlet/eventlet/issues/401 + eventlet.sleep() import eventlet.event import eventlet.queue import eventlet.semaphore |