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.
推荐阅读
- Bootstrap后台管理模板怎样使用
- 怎样看待凌晨三点支付宝应用在跑“后台”?
- 安卓后台进程经常被杀是一种怎么样的体验
- 个性化推荐系统后台实现方式是啥
- 用java开发app后台用啥框架
- 宝马|宝马X6实拍,价格优惠是惊喜
- 怎样修改微信后台图文消息统计数据
- 开发一个类似嘀嘀后台一样的软件,大概需要多少费用
- 多线程编程中join这个单词为啥有等待结束的意思
- 湖南17年的选调生和年薪20几万的上海互联网后台开发,选哪个