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>
This commit is contained in:
IWASE Yusuke 2017-05-08 11:43:54 +09:00 committed by FUJITA Tomonori
parent 5a1da545bf
commit 6d35bb8d01
1 changed files with 4 additions and 0 deletions

View File

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