Pusher doesn't reconnect when network is disconnected for ~5 min
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 18/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java
- 领域
- networking
调研方向
The payload names no files. Start from the connection lifecycle and reconnect handling in the client, and from the changedConnectionState listener the reporter says fires only on initial connect. The reporter's snippets use reconnectAttemptsMax and maxReconnectGapInSeconds, which look like Swift-client syntax, so first check whether this Java client exposes those settings. Done means the client reconnects and reports a live socket ID after a 5-minute network outage. Reproducing that needs a way to drop the network for several minutes.
由索引模型根据 Issue 内容生成。
描述
Pusher doesn't reconnect when network is disconnected for ~5 min.
Steps to reproduce:
Connect to Pusher and subscribe to channel. Events are received as usual.
Turn off Wifi for ~5 min.
Turn on Wifi.
What I can observe is that there is a Disconnection message in the web console once Wifi is turned on, but in the app, pusher.connection.connectionState still returns connected and pusher.connection.socketId returns the disconnected(as seen in the web console) socket id.
It works fine if Wifi is turned off for less than 2-3 min - it auto reconnects and receives events again, it's only an issue when it's disconnected for ~5 min or more.
I've also added
pusher.connection.reconnectAttemptsMax = nil
pusher.connection.maxReconnectGapInSeconds = 60
but it doesn't change anything.
I've also added a listener on changedConnectionState, but the only time it fires is during the initial connection setup - it goes from connecting to connected.
- 主要语言
- Java
- 星标
- 315
- 派生
- 140
- 平均合并
- 11 天 5 小时
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pusher/pusher-websocket-java 的其他 Issue
-
FileNotFoundException thrown when server responds with 400 or above可能已有人在做 @RaphaelFakhri 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
pusher/pusher-websocket-java#261 ·
-
java.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0 on Android API 21-22 anyway可能已有人在做 @Keith-wright 于 8 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 22/100
pusher/pusher-websocket-java#366 ·
-
难度 5/5 一周以上 新手友好度 15/100
pusher/pusher-websocket-java#340 · 3 条评论 · 7 个 reaction ·
-
难度 4/5 1-2 天 新手友好度 8/100
pusher/pusher-websocket-java#311 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 12/100
pusher/pusher-websocket-java#308 · 2 条评论 ·
查看 pusher/pusher-websocket-java 的全部 Issue
相似的 Issue
-
bug/错误
难度 2/5 1-3 小时 新手友好度 64/100
FCL-Team/FoldCraftLauncher#1982 · 2 条评论 ·
维护者通常 1 天内回复
-
[BUG] micronaut-serde-oracle-jdbc-json brings a second OJDBC driver onto the runtime classpath可能已有人在做 @ZARAYACH 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
micronaut-projects/micronaut-serialization#1494 · 4 条评论 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 2 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
vitruv-tools/Vitruv-Change#600 ·
维护者通常 1 天内回复
-
code-health feature/sync OS/Android QA/Test-Plan-Specified QA/Yes
难度 2/5 1-3 小时 新手友好度 75/100
brave/brave-browser#60327 ·
维护者通常 1 天内回复