Files
hermes-agent/plugins
Teknium 48d57b63f5 fix(telegram): getUpdates reuses one socket off Windows instead of a fresh TCP per poll
max_keepalive_connections=0 (b02b7122f8, #87057) made every ~10 s
long-poll open a new TCP+TLS connection. Each closed socket parks in
client-side TIME_WAIT: two profiles exhausted macOS's 16k ephemeral
range after ~2 days (host-wide EADDRNOTAVAIL), and on Linux/macOS the
~9k daily handshakes turn a small per-connect failure rate into
constant polling gaps. telegram_network.getupdates_keepalive_connections()
keeps 0 on Windows (the CLOSE_WAIT reuse deadlock) and 1 elsewhere,
enough for the single in-flight poll; the standalone sender shares the
builder.

Live: 20 polls through the real build_ptb_requests getUpdates client
opened 20 TCP connections on main, 1 on this head.

Co-authored-by: holny <holny@foxmail.com>
Fixes #107880
2026-11-09 15:02:48 -08:00
..
…