任何人都可以帮助我解决自上周以来我遇到的这个奇怪的错误,该错误特定于 Windows 10 家庭版(所有浏览器)。这很奇怪,因为这个错误出现在一个自过去 3 年以来一直运行良好的系统中(包括 win 10 pc home/prof)。
错误 - “失败:一个或多个保留位已开启:reserved1 = 0、reserved2 = 1、reserved3 = 0”[因此无法连接到服务器]...但是这在 Windows 10 专业电脑中工作正常
Socket.IO 版本 - 0.9.16 ( wss://127.0.0.1:3000 ) ...位于 NGINX 后面,带有自签名证书 操作系统 - Windows 10 家庭版 浏览器 - 最新的 Chrome/Firefox Node - v0.10.31
最佳答案
TL;博士
- 更新 nginx。
- 卸载 ESET NOD32 防病毒软件
1) Nginx:
看看这个是否有帮助:
<小时/>Found the answer at the bottom of an Nginx blogpost: I needed to upgrade my Nginx version to a 1.3.13+. Installed the 1.10 (latest stable) using the right Nginx Debian repository (see instructions), and it seems to works fine now :)
2) ESET NOD32
上周他们更新了软件,对 Websocket 连接施加了更多限制。
这是解释问题的 eset nod32 线程:
https://forum.eset.com/topic/8355-protocol-filtering-breaks-websockets-after-update-at-5052016/
有关详细信息,请参阅此 github 线程:
https://github.com/socketio/socket.io/issues/2543#issuecomment-218010922
关于node.js - Socket.io 自过去 1 周以来已停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37117080/