WebsocketNotConnectedException
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 20/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- networking
调研方向
The crash comes from the send call in WebSocketConnection.java around line 132, which runs as a Runnable on the executor from Factory.java. Start by checking whether the connection state is verified before WebSocketClient.send is called, and whether a disconnect can happen between that check and the send. The issue gives no reproduction steps, so a fix would need a clear guard or handling for the not-connected case and a test that sends on a closed socket. Done means the send path no longer throws WebsocketNotConnectedException unhandled, with the behaviour confirmed by a test.
由索引模型根据 Issue 内容生成。
描述
With Pusher 2.0.0
SM-G950F, Android 9
Non-fatal Exception: org.java_websocket.exceptions.WebsocketNotConnectedException
at org.java_websocket.WebSocketImpl.send + 630(WebSocketImpl.java:630)
at org.java_websocket.WebSocketImpl.send + 607(WebSocketImpl.java:607)
at org.java_websocket.client.WebSocketClient.send + 344(WebSocketClient.java:344)
at com.pusher.client.connection.websocket.WebSocketConnection$3.run + 132(WebSocketConnection.java:132)
at com.pusher.client.util.Factory$1.run + 109(Factory.java:109)
at java.util.concurrent.ThreadPoolExecutor.runWorker + 1167(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run + 641(ThreadPoolExecutor.java:641)
at java.lang.Thread.run + 764(Thread.java:764)
- 主要语言
- Java
- 星标
- 315
- 派生
- 140
- 平均合并
- 10 天 14 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pusher/pusher-websocket-java 的其他 Issue
-
java.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0 on Android API 21-22 anyway可能已有人在做 @Keith-wright 于 10 天前认领。 未关闭
难度 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 条评论 ·
-
难度 4/5 3-5 天 新手友好度 18/100
pusher/pusher-websocket-java#303 · 4 条评论 ·
查看 pusher/pusher-websocket-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
ballerina-platform/ballerina-library#9437 ·
维护者通常 1 天内回复
-
Documentation
难度 1/5 1 小时以内 新手友好度 88/100
OWASP/SecurityShepherd#1097 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
Dans-Plugins/Medieval-Roleplay-Engine#392 · 1 条评论 ·
维护者通常 1 天内回复
-
Invalid If-Modified-Since or If-Unmodified-Since header results in 500 with Request.evaluatePreconditions()可能已有人在做 @pschaub 今天认领。 未关闭kind/bug triage/needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100