cmd: crio: set ReadTimeout on the info endpoint

This will avoid the goroutines leak we've been seeing during
performance tests. Goroutines count returns to normal after containers
cleanup.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-10-29 21:56:54 +01:00
parent 3ae3c41256
commit 158d53e62a
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

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"
@ -470,7 +471,8 @@ func main() {
infoMux := service.GetInfoMux()
srv := &http.Server{
Handler: infoMux,
Handler: infoMux,
ReadTimeout: 5 * time.Second,
}
graceful := false