matrix-org / matrix-federation-tester

Tester for matrix federation written in golang.
77 stars 17 forks source link

Set `ReadHeaderTimeout` on the HTTP server #124

Closed neilalexander closed 1 year ago

neilalexander commented 1 year ago

This should hopefully satisfy the G114: Use of net/http serve function that has no support for setting timeouts (gosec) lint error by ensuring that we drop connections from clients that don't send a fully-formed HTTP request quickly enough.