Python-Flask-SocketIO后台线程推送时这种业务模型该怎样取舍

你好,我也遇到用eventlet的问题,但是我使用的时候会报这样的错误:Error on request:
Traceback (most recent call last):
File "/Volumes/project/python_project/flask/venv/lib/python3.8/site-packages/werkzeug/serving.py", line 323, in run_wsgi
execute(self.server.app)
File "/Volumes/project/python_project/flask/venv/lib/python3.8/site-packages/werkzeug/serving.py", line 312, in execute
application_iter = app(environ, start_response)
File "/Volumes/project/python_project/flask/venv/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask_socketio/__init__.py", line 36, in __call__
return super(_SocketIOMiddleware, self).__call__(environ,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/engineio/middleware.py", line 60, in __call__
return self.engineio_app.handle_request(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/socketio/server.py", line 560, in handle_request
return self.eio.handle_request(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/engineio/server.py", line 376, in handle_request
【Python-Flask-SocketIO后台线程推送时这种业务模型该怎样取舍】 packets = socket.handle_get_request(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/engineio/socket.py", line 107, in handle_get_request
return getattr(self, \u0026#39;_upgrade_\u0026#39; + transport)(environ,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/engineio/socket.py", line 152, in _upgrade_websocket
return ws(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/engineio/async_drivers/eventlet.py", line 16, in __call__
raise RuntimeError(\u0026#39;You need to use the eventlet server. \u0026#39;
RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for more information.


    推荐阅读