Merge pull request #11072 from matejvasek/header-timeout

Remove ReadHeaderTimeout
This commit is contained in:
openshift-ci[bot] 2021-08-02 12:25:19 +00:00 committed by GitHub
commit 1f43e82d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -91,7 +91,6 @@ func newServer(runtime *libpod.Runtime, duration time.Duration, listener *net.Li
server := APIServer{ server := APIServer{
Server: http.Server{ Server: http.Server{
Handler: router, Handler: router,
ReadHeaderTimeout: 20 * time.Second,
IdleTimeout: duration * 2, IdleTimeout: duration * 2,
ConnState: idle.ConnState, ConnState: idle.ConnState,
ErrorLog: log.New(logrus.StandardLogger().Out, "", 0), ErrorLog: log.New(logrus.StandardLogger().Out, "", 0),