Skip to content

fix(server): harden HTTP server timeouts#249

Open
samcm wants to merge 2 commits into
masterfrom
fix/http-server-timeouts
Open

fix(server): harden HTTP server timeouts#249
samcm wants to merge 2 commits into
masterfrom
fix/http-server-timeouts

Conversation

@samcm

@samcm samcm commented Jun 12, 2026

Copy link
Copy Markdown
Member

The main HTTP server had no IdleTimeout or ReadTimeout, a 3 minute ReadHeaderTimeout, and a 15 minute WriteTimeout. Idle keep-alive connections were never reaped, and a slow reader could hold a response (and its memory) for up to 15 minutes.

This sets IdleTimeout to 120s, ReadTimeout to 60s, drops ReadHeaderTimeout to 30s, and lowers WriteTimeout to 5 minutes. The write timeout stays generous because beacon state downloads are hundreds of MB and can legitimately take minutes on slow links.

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.

1 participant