There is a bug in socket.io-client version 4.8.1.
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, nodejs, typescript
- 领域
- networking
调研方向
使用 socket.io-client 和服务器版本 4.8.1 重现离线/在线重连序列,重点关注 HTTP 请求和身份验证中间件。将其行为与客户端版本 4.0.1 进行比较,并验证重连后中间件是否在 connection 事件之前执行。
由索引模型根据 Issue 内容生成。
描述
When the connection between the client and server is established for the first time, everything works fine. However, as soon as the user goes offline and the socket.io-client attempts to reconnect between the client and server, there’s no issue up to this point. But the problem occurs when the user comes back online. In this case, an HTTP request is sent, but the middleware doesn’t execute, and the connection event is triggered directly. If there’s an authentication middleware, it won't be executed, causing the program to break. Both the server and client versions being used are 4.8.1. However, I didn’t encounter this issue with version 4.0.1, which I tested on the client side, and the program didn't break.
- 主要语言
- TypeScript
- 星标
- 63.2k
- 派生
- 10.2k
- 平均合并
- 6 天 4 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
socketio/socket.io 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
Raise Engine.IO minimum to 6.6.10 for published security fixes可能已有人在做 @harshit-exe-dev 于 28 天前认领。 未关闭
难度 1/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
Can't set response headers in Server.handleUpgrade可能已有人在做 @MsfPablo 于 89 天前认领。 未关闭question
难度 2/5 1-3 小时 新手友好度 72/100
socketio/socket.io#5497 · 2 条评论 ·
维护者通常 2 天内回复
-
WebTransport ignores query parameters in URL可能已有人在做 @cyphercodes 于 178 天前认领。 未关闭needs major release question
难度 2/5 1-3 小时 新手友好度 68/100
socketio/socket.io#5496 · 3 条评论 ·
维护者通常 2 天内回复
-
cleanupEmptyChildNamespaces releases a child namespace while a socket is in its middleware, and the cleanup unregisters a newer namespace by name可能已有人在做 @Jeremiah-D 于 5 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 54/100
维护者通常 2 天内回复
查看 socketio/socket.io 的全部 Issue
相似的 Issue
-
bug:unconfirmed
难度 2/5 1-3 小时 新手友好度 68/100
Heroic-Games-Launcher/HeroicGamesLauncher#6062 ·
维护者通常 1 天内回复
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 67/100
Richard-Zhang1019/Crossbow#431 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 63/100
EKKOLearnAI/ekko-studio#3761 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 67/100
ruyd/agentic-sdlc-lab#4 · 2 条评论 ·