我正在使用nginx 1.4.0,它可以很好地处理较新的WebSocket版本,但草案76是一个问题。我的后端(基于Netty中的Java应用程序)似乎并没有收到握手请求,并且在Nginx的错误日志我Nginx:反向代理WebSocket草案76
[error] 7662#0: *3720 upstream timed out (110: Connection timed out) while reading response header from upstream
我的配置($ proxy_add_connection以同样的方式描述there)
include proxy_params;
proxy_pass http://127.0.0.1:8001/;
proxy_http_version 1.1;
proxy_set_header Connection $proxy_add_connection;
proxy_set_header Upgrade $http_upgrade;
如果我直接连接到后端,它工作正常。
有什么我可以做的,以解决它?