【发布时间】:2014-05-18 21:16:08
【问题描述】:
每个连接我都会得到以下日志行:
info: handshake authorized bQumvCf9KtcMVUoXcXG5
warn: websocket connection invalid
info: transport end (undefined)
而 Apache2 错误日志同时显示了这一点:
[Sun Apr 06 15:09:16 2014] [error] [client 24.84.162.51] (20014)Internal error: proxy: error reading status line from remote server localhost:7000
[Sun Apr 06 15:09:16 2014] [error] [client 24.84.162.51] proxy: Error reading from remote server returned by /socket.io/1/websocket/bQumvCf9KtcMVUoXcXG5
我可以在 Sails 中做些什么来调整 socket.io 的行为吗?我的意思是,页面正在加载,事情似乎正在连接,但显然有些不愉快,当我的日志文件不是静默时,我总是很紧张。你不是吗?
【问题讨论】:
-
也许this answer 关于通过 Apache 代理 Websockets 会有用吗?
标签: apache sockets sails.js mod-proxy