summaryrefslogtreecommitdiff
path: root/pkg/api/server
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-07-28 22:26:55 +0200
committerMatej Vasek <mvasek@redhat.com>2021-07-29 14:07:47 +0200
commit872c442e674eb7db34e2c71cb5e6aa51b79a4484 (patch)
treeaf38bd25e9fe2cdc6fcbdac5f6c4e3dd6e5ae3e5 /pkg/api/server
parenta5de8314188d7376f645d8ac6c6f7a6f685b6a45 (diff)
downloadpodman-872c442e674eb7db34e2c71cb5e6aa51b79a4484.tar.gz
podman-872c442e674eb7db34e2c71cb5e6aa51b79a4484.tar.bz2
podman-872c442e674eb7db34e2c71cb5e6aa51b79a4484.zip
Remove ReadHeaderTimeout
Effectively sets timeout to infinity. This is needed in order to make `podman` work with `pack`. The `pack` CLI is keeping one connection for prolonged time. Closing the connection breaks `pack`'s functionality. [NO TESTS NEEDED] Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'pkg/api/server')
-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,