always select twistedreactor hub
This commit is contained in:
@@ -354,6 +354,10 @@ def get_default_hub():
|
|||||||
"""Select the default hub implementation based on what multiplexing
|
"""Select the default hub implementation based on what multiplexing
|
||||||
libraries are installed. Tries libevent first, then poll, then select.
|
libraries are installed. Tries libevent first, then poll, then select.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from eventlet.hubs import twistedreactor
|
||||||
|
return twistedreactor
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import eventlet.hubs.libevent
|
import eventlet.hubs.libevent
|
||||||
return eventlet.hubs.libevent
|
return eventlet.hubs.libevent
|
||||||
|
Reference in New Issue
Block a user