小编zec*_*eck的帖子

使用eventlet来管理Flask中的socketio

我正在尝试设置一个小型服务器来处理HTTP和socketio请求 - 我没有太多设置服务器的经验,但现在apache2服务http就好了.然而,socketio事务继续失败,错误代码为400(错误请求),我在服务器日志中看到一些奇怪的错误.有时我看到一个engineio错误,服务器响应"错误请求"和代码400,但总是它告诉我需要启动eventlet服务器:

[Mon Jan 11 19:02:54.068282 2016] [:error] [pid 4908:tid 140274923673344] [client 100.96.180.39:53473]     return ws(environ, start_response)
[Mon Jan 11 19:02:54.068305 2016] [:error] [pid 4908:tid 140274923673344] [client 100.96.180.39:53473]   File "/var/www/projectENV/lib/python2.7/site-packages/engineio/async_eventlet.py", line 10, in __call__
[Mon Jan 11 19:02:54.068342 2016] [:error] [pid 4908:tid 140274923673344] [client 100.96.180.39:53473]     raise RuntimeError('You need to use the eventlet server.')
[Mon Jan 11 19:02:54.068380 2016] [:error] [pid 4908:tid 140274923673344] [client 100.96.180.39:53473] RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for …
Run Code Online (Sandbox Code Playgroud)

python flask flask-socketio

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

flask ×1

flask-socketio ×1

python ×1