mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-16 16:50:41 +01:00
Only a close frame or read error ended the signaling loop, so a half-open socket after suspend or a NAT drop left the host believing it was online. Per Engine.IO 4, report Disconnected when no ping arrives within the server's pingInterval + pingTimeout so the existing reconnect loop runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
15 lines
1.1 KiB
Markdown
15 lines
1.1 KiB
Markdown
信令断线检测:主机休眠恢复或网络悄悄断开后自动重新上线。/ Detect dead signaling connections and reconnect.
|
||
|
||
### 修复 / Fixed
|
||
- **主机显示在线但控制端看不到、只能手动重启服务**(#19,感谢 @Keinns):之前只有收到关闭帧或读错误才判定信令断开;
|
||
系统休眠恢复、NAT 超时等造成的半开连接会让主机一直以为自己在线。现在按 Engine.IO 协议,超过服务器下发的
|
||
`pingInterval + pingTimeout`(目前约 33 秒)没收到心跳就判定断线,走已有的自动重连。日志:`Signaling heartbeat lost`。
|
||
已用模拟的「不发心跳」信令服务器单元测试验证;真实休眠恢复场景未实测。
|
||
Signaling now treats a connection without pings for pingInterval + pingTimeout as dead and reconnects.
|
||
Unit-tested against a silent mock server; real suspend/resume not yet measured.
|
||
|
||
### 下载 / Download
|
||
`uu-remote-linux-v0.1.19-x86_64-linux.tar.gz`:X11 版可执行文件(x86_64,glibc ≥ 2.35),附带 `contrib/`。
|
||
|
||
**非官方项目,与网易无关。** / **Unofficial, not affiliated with NetEase.**
|