core icon indicating copy to clipboard operation
core copied to clipboard

[BUG] websocket 重连后,有一定概率前后端不可交互

Open piLurk opened this issue 1 year ago • 9 comments

描述你的问题(Describe the bug) 在 websocket 重连后,有两个长连接,有一定概率前后端不可交互

image

看下下代码,依赖了一个 reconnecting-websocket 包, 直接在创建长连接时就释放 block 了,是不是需要等上一个长连接请求 close 或者 error image

复现路径(To Reproduce)

  1. 断网到 触发 websocket 重新连接
  2. 打开网络
  3. 有一定概率前后端不可交互

预期表现(Expected behavior) websocket 重连后,前后端可交互

piLurk avatar Jul 20 '23 13:07 piLurk