Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 4522415

Browse files
committed
Add Uncontrolled Resource Consumption security mitigation to http server
1 parent 27b11d3 commit 4522415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/runner/runner.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ func Run(cfg *Config) error {
273273
server := http.Server{
274274
Addr: cfg.ListenAddr,
275275
Handler: mux,
276+
// Uncontrolled Resource Consumption security mitigation.
277+
ReadHeaderTimeout: 60 * time.Second,
276278
}
277279
group.Add(
278280
func() error {

0 commit comments

Comments
 (0)