Files
brov-macbook/ops/brovops
maksarsanjeev 65d44c412e ops bot: timeouts on Telegram polling and a watchdog that restarts a stuck poll
On 12.10 one ConnectError through the proxy left getUpdates hanging on a dead (CLOSE-WAIT)
connection for 1.5 days: reminders still went out, incoming messages got no answer.
Explicit connect/read/pool timeouts for both request pools, long-poll timeout 25 s, and a
watchdog: no successful getUpdates for 3 minutes → exit, systemd starts a fresh process.
Tested on the VM by stopping the proxy: restart after 185 s, polling back once the proxy
returned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 23:15:17 +03:00
..