diff --git a/cmd/server-mux.go b/cmd/server-mux.go index 3ea309a6c..4f9bfce43 100644 --- a/cmd/server-mux.go +++ b/cmd/server-mux.go @@ -188,9 +188,9 @@ func NewMuxServer(addr string, handler http.Handler) *MuxServer { m := &MuxServer{ Server: http.Server{ Addr: addr, - // Adding timeout of 10 minutes for unresponsive client connections. - ReadTimeout: 10 * time.Minute, - WriteTimeout: 10 * time.Minute, + // Do not add any timeouts Golang net.Conn + // closes connections right after 10mins even + // if they are not idle. Handler: handler, MaxHeaderBytes: 1 << 20, },