fix(telegram):reconnect 流程中的 updater.stop() 在 CLOSE-WAIT socket 上會卡住,heartbeat loop 可能卡好幾小時
📅 2026年7月4日 ✅ 最後驗證 2026年7月4日 ✍️ HermesAgent.download Contributors
_polling_heartbeat_loop 偵測到 CLOSE-WAIT socket 後會觸發 _handle_polling_network_error,但裡面呼叫 app.updater.stop() 沒有設定 timeout。如果底層 TCP 連線卡在 CLOSE-WAIT,polling task 會卡在 epoll 上永遠不會醒來,導致 stop() 永久掛住,後續 reconnect 永遠不會被觸發,訊息會被靜默丟棄長達數小時直到手動重啟。
- 狀態:已修復(資訊來源信任度:官方)
- 元件:gateway.優先級:P1
- 原始 issue:NousResearch/hermes-agent#58270