Skip to content

fix: apply idle timeout to Telegram relay#420

Merged
9seconds merged 2 commits into9seconds:masterfrom
dolonet:fix/telegram-relay-idle-timeout
Mar 29, 2026
Merged

fix: apply idle timeout to Telegram relay#420
9seconds merged 2 commits into9seconds:masterfrom
dolonet:fix/telegram-relay-idle-timeout

Conversation

@dolonet
Copy link
Copy Markdown
Contributor

@dolonet dolonet commented Mar 29, 2026

Summary

  • Wrap both sides of the Telegram relay in connIdleTimeout, same as done for domain fronting in fix: apply idle timeout to domain fronting relay #416
  • Without this, if a client disappears (network drop, battery dies), the goroutine blocks on io.CopyBuffer indefinitely, accumulating zombie goroutines in the worker pool

Fixes #417

dolonet added 2 commits March 29, 2026 16:59
Wrap both sides of the Telegram relay in connIdleTimeout,
same as already done for domain fronting in 9seconds#416.

Without this, if a client disappears (network drop, battery dies),
the TCP connection stays formally alive and the goroutine in the
worker pool blocks on io.CopyBuffer indefinitely. Under mass client
disconnects this accumulates zombie goroutines.

Fixes 9seconds#417
@9seconds 9seconds merged commit 1725a0d into 9seconds:master Mar 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IdleTimeout from ProxyOpts is not wired into Telegram relay

2 participants