mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 13:07:07 +00:00
Make global http timeout longer than most operations
We have a few long running operations today (sync=true, watch) that exceed the original default http.Server timeout. We should set the timeout to a high enough limit that more granular controls can be implemented.
This commit is contained in:
parent
82d1f8d4f6
commit
0df89fee48
@ -113,8 +113,8 @@ func main() {
|
|||||||
s := &http.Server{
|
s := &http.Server{
|
||||||
Addr: net.JoinHostPort(*address, strconv.Itoa(int(*port))),
|
Addr: net.JoinHostPort(*address, strconv.Itoa(int(*port))),
|
||||||
Handler: apiserver.Handle(storage, codec, *apiPrefix),
|
Handler: apiserver.Handle(storage, codec, *apiPrefix),
|
||||||
ReadTimeout: 10 * time.Second,
|
ReadTimeout: 5 * time.Minute,
|
||||||
WriteTimeout: 10 * time.Second,
|
WriteTimeout: 5 * time.Minute,
|
||||||
MaxHeaderBytes: 1 << 20,
|
MaxHeaderBytes: 1 << 20,
|
||||||
}
|
}
|
||||||
glog.Fatal(s.ListenAndServe())
|
glog.Fatal(s.ListenAndServe())
|
||||||
|
Loading…
Reference in New Issue
Block a user