mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
当对端关闭连接导致 write half 退出但 read half 仍打开时, dispatcher 会在 ws_stream.next() 上永久阻塞。通过在 tokio::select! 中监控 writer_handle,检测到 writer 退出后立即触发重连。
当对端关闭连接导致 write half 退出但 read half 仍打开时, dispatcher 会在 ws_stream.next() 上永久阻塞。通过在 tokio::select! 中监控 writer_handle,检测到 writer 退出后立即触发重连。