Skip to content

Commit 6452504

Browse files
committed
fix: potential slowloris attack
1 parent 5623607 commit 6452504

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/container/endure.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ func profile() {
224224
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
225225
mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
226226

227-
srv := &http.Server{Handler: mux, Addr: "0.0.0.0:6061"}
227+
srv := &http.Server{
228+
ReadHeaderTimeout: time.Minute * 5,
229+
Handler: mux,
230+
Addr: "0.0.0.0:6061",
231+
}
228232

229233
_ = srv.ListenAndServe()
230234
}()

0 commit comments

Comments
 (0)