Merge pull request #1091 from runcom/cmux-http-read-timeout-v1

[release-1.0] cmd: crio: set ReadTimeout on the info endpoint
This commit is contained in:
Daniel J Walsh 2017-10-30 09:07:06 -04:00 committed by GitHub
commit ae6e74731c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ import (
"os/signal"
"sort"
"strings"
"time"
"github.com/containers/storage/pkg/reexec"
"github.com/kubernetes-incubator/cri-o/libkpod"
@ -471,6 +472,7 @@ func main() {
infoMux := service.GetInfoMux()
srv := &http.Server{
Handler: infoMux,
ReadTimeout: 5 * time.Second,
}
graceful := false