Browse Source

add explicit eventlet.wsgi import

pull/42/head
Miguel Grinberg 9 years ago
parent
commit
33bd933d8b
  1. 1
      examples/app.py
  2. 4
      examples/latency.py

1
examples/app.py

@ -93,6 +93,7 @@ if __name__ == '__main__':
elif sio.async_mode == 'eventlet':
# deploy with eventlet
import eventlet
import eventlet.wsgi
eventlet.wsgi.server(eventlet.listen(('', 5000)), app)
elif sio.async_mode == 'gevent':
# deploy with gevent

4
examples/latency.py

@ -28,8 +28,8 @@ if __name__ == '__main__':
elif sio.async_mode == 'eventlet':
# deploy with eventlet
import eventlet
from eventlet import wsgi
wsgi.server(eventlet.listen(('', 5000)), app)
import eventlet.wsgi
eventlet.wsgi.server(eventlet.listen(('', 5000)), app)
elif sio.async_mode == 'gevent':
# deploy with gevent
from gevent import pywsgi

Loading…
Cancel
Save