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:
parent
5a1da545bf
commit
6d35bb8d01
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user