mirror of https://github.com/containers/podman.git
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>
This commit is contained in:
parent
a5de831418
commit
872c442e67
|
|
@ -90,11 +90,10 @@ 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),
|
|
||||||
},
|
},
|
||||||
Decoder: handlers.NewAPIDecoder(),
|
Decoder: handlers.NewAPIDecoder(),
|
||||||
idleTracker: idle,
|
idleTracker: idle,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue