wenzuhuai
e452971586
fix: 修复channelInactive状态检查不完整导致的重连问题
...
- 将 channelInactive 的状态检查从仅处理 connected 状态改为处理所有非 closed/disconnected 状态
- 与 errorCaught 的处理逻辑保持一致
- 确保在 connecting/pending 状态下网络断开时也能正确触发重连
2026-01-22 09:08:01 +08:00
wenzuhuai
5ad1174292
fix: improve connection stability and add connection check API
...
ci / macos (push) Has been cancelled
ci / ios (push) Has been cancelled
ci / check-linter (push) Has been cancelled
- Fix race condition in resource cleanup during disconnect/cancel
- Trigger reconnect on ping send failure
- Trigger reconnect on write operation failure
- Add isConnected and connectionState properties
- Add checkConnection() method for active connection testing
- Add ensureConnected() method for proactive connection recovery
2026-01-21 11:43:23 +08:00
wenzuhuai
153e600bbc
fix: clear pending pings to avoid promise leaks on connection close/suspend
...
ci / macos (push) Has been cancelled
ci / ios (push) Has been cancelled
ci / check-linter (push) Has been cancelled
- Add cancel() method to RttCommand to fail promise on connection close
- Add dequeueAll() method to ConcurrentQueue for batch cleanup
- Call clearPendingPings() in close(), suspend(), and disconnect() methods
- Prevents 'leaking promise' crash when connection is closed while pings are pending
2026-01-12 19:16:56 +08:00
wenzuhuai
d7bdb4f378
init
ci / macos (push) Has been cancelled
ci / ios (push) Has been cancelled
ci / check-linter (push) Has been cancelled
2026-01-12 18:29:52 +08:00