node.js - Socket.io 自过去 1 周以来已停止工作

标签 node.js nginx socket.io wss

任何人都可以帮助我解决自上周以来我遇到的这个奇怪的错误,该错误特定于 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;博士

  1. 更新 nginx。
  2. 卸载 ESET NOD32 防病毒软件
<小时/>

1) Nginx:

看看这个是否有帮助:

WebSocket connection failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1

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/

相关文章:

Nginx 背后的 Apache 由于 DirectorySlash 重定向而暴露自己

azure - ASP.NET Core Docker 容器内的 Nginx

node.js - Socket IO ssl 独立无 http/https 服务器

node.js - 如何在浏览器上显示不断更新的文件?

linux - 为 nodejs 运行 cron 并删除临时文件

node.js - 为什么我会收到以下 Redis 警告和错误?

javascript - 使用node.js和express处理POST请求

Nginx子域配置

Node.js + Express + Socket.io : No client socket events firing

php - Nginx 位置覆盖 Laravel 5.2 路由?