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.
@@ -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
