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:
commit
ae6e74731c
1 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,7 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/containers/storage/pkg/reexec"
|
"github.com/containers/storage/pkg/reexec"
|
||||||
"github.com/kubernetes-incubator/cri-o/libkpod"
|
"github.com/kubernetes-incubator/cri-o/libkpod"
|
||||||
|
@ -470,7 +471,8 @@ func main() {
|
||||||
|
|
||||||
infoMux := service.GetInfoMux()
|
infoMux := service.GetInfoMux()
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
Handler: infoMux,
|
Handler: infoMux,
|
||||||
|
ReadTimeout: 5 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
graceful := false
|
graceful := false
|
||||||
|
|
Loading…
Reference in a new issue