diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2021-08-02 12:25:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 12:25:19 +0000 |
commit | 1f43e82d384fe9fdddac1dbfa87f3e7b29658c26 (patch) | |
tree | acd78d30779d09e78ca12338b33dfd3316abed5b /pkg | |
parent | 03afc91e2a1a930fd8ebe733b42ea7e6798432bc (diff) | |
parent | 872c442e674eb7db34e2c71cb5e6aa51b79a4484 (diff) | |
download | podman-1f43e82d384fe9fdddac1dbfa87f3e7b29658c26.tar.gz podman-1f43e82d384fe9fdddac1dbfa87f3e7b29658c26.tar.bz2 podman-1f43e82d384fe9fdddac1dbfa87f3e7b29658c26.zip |
Merge pull request #11072 from matejvasek/header-timeout
Remove ReadHeaderTimeout
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/api/server/server.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/api/server/server.go b/pkg/api/server/server.go index 1e8faf8f5..72ae27276 100644 --- a/pkg/api/server/server.go +++ b/pkg/api/server/server.go @@ -90,11 +90,10 @@ func newServer(runtime *libpod.Runtime, duration time.Duration, listener *net.Li server := APIServer{ Server: http.Server{ - Handler: router, - ReadHeaderTimeout: 20 * time.Second, - IdleTimeout: duration * 2, - ConnState: idle.ConnState, - ErrorLog: log.New(logrus.StandardLogger().Out, "", 0), + Handler: router, + IdleTimeout: duration * 2, + ConnState: idle.ConnState, + ErrorLog: log.New(logrus.StandardLogger().Out, "", 0), }, Decoder: handlers.NewAPIDecoder(), idleTracker: idle, |