diff --git a/cmd/admission/main.go b/cmd/admission/main.go index fd74fc554f..34c3065ef4 100644 --- a/cmd/admission/main.go +++ b/cmd/admission/main.go @@ -72,7 +72,7 @@ func main() { server := &http.Server{ Addr: ":8443", - ReadTimeout: 5 * time.Second, // for Potential Slowloris Attack + ReadHeaderTimeout: 10 * time.Second, // for Potential Slowloris Attack (G112) // Require at least TLS12 to satisfy golint G402. TLSConfig: &tls.Config{MinVersion: tls.VersionTLS12, Certificates: []tls.Certificate{certs}}, }