Skip to content

Add HTTP server timeouts to index-server and chunk-server#329

Merged
folbricht merged 1 commit intomasterfrom
http-server-timeouts
Apr 18, 2026
Merged

Add HTTP server timeouts to index-server and chunk-server#329
folbricht merged 1 commit intomasterfrom
http-server-timeouts

Conversation

@folbricht
Copy link
Copy Markdown
Owner

Summary

  • Set ReadHeaderTimeout: 30s and IdleTimeout: 120s on the http.Server shared by index-server and chunk-server.
  • Without these, an Internet-exposed server is vulnerable to Slowloris-style header-read attacks and lets idle keep-alive connections accumulate without bound.
  • ReadTimeout and WriteTimeout are intentionally left at 0 so that slow but legitimate transfers of large chunks or indexes aren't truncated.

Set ReadHeaderTimeout (30s) and IdleTimeout (120s) on the http.Server
used by both index-server and chunk-server. Without these, an Internet-
exposed server is vulnerable to Slowloris-style header-read attacks and
unbounded idle keep-alive connections.

ReadTimeout and WriteTimeout are intentionally left at 0 so that slow
but legitimate transfers of large chunks or indexes aren't cut off.
@folbricht folbricht marked this pull request as ready for review April 18, 2026 15:39
@folbricht folbricht merged commit 3c83e00 into master Apr 18, 2026
6 checks passed
@folbricht folbricht deleted the http-server-timeouts branch April 18, 2026 15:43
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