summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-02 12:25:19 +0000
committerGitHub <noreply@github.com>2021-08-02 12:25:19 +0000
commit1f43e82d384fe9fdddac1dbfa87f3e7b29658c26 (patch)
treeacd78d30779d09e78ca12338b33dfd3316abed5b /pkg/api
parent03afc91e2a1a930fd8ebe733b42ea7e6798432bc (diff)
parent872c442e674eb7db34e2c71cb5e6aa51b79a4484 (diff)
downloadpodman-1f43e82d384fe9fdddac1dbfa87f3e7b29658c26.tar.gz
podman-1f43e82d384fe9fdddac1dbfa87f3e7b29658c26.tar.bz2
podman-1f43e82d384fe9fdddac1dbfa87f3e7b29658c26.zip
Merge pull request #11072 from matejvasek/header-timeout
Remove ReadHeaderTimeout
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/server/server.go9
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,