From 6d35bb8d0198900de0ae418d966112bb8ab4a09b Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 8 May 2017 11:43:54 +0900 Subject: [PATCH] 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 Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/lib/hub.py | 4 ++++ 1 file changed, 4 insertions(+) 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