一 生产环境说明
1) tornado 4.2
2) Tornado-MySQL
3) supervisor 3.0b2
4) protobuf 2.6.1
5) python 2.7.6
6) nginx/1.4.6
二 实际问题
1) 问:使用nginx 代理后不能访问 报错 WARNING:tornado.access:400 GET /ws (127.0.0.1) 0.79ms
答:需要在nginx 的location中新增如下配置
# websocket proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
关于websocket 在生产环境中遇到的问题 及 解决办法
原文:http://www.cnblogs.com/tangkaixin/p/4884550.html