Increase timeouts to run pprof
This commit is contained in:
parent
ffea85d397
commit
4fe8fc2e41
1 changed files with 6 additions and 4 deletions
|
@ -276,10 +276,12 @@ func registerHandlers(enableProfiling bool, port int, ic *controller.NGINXContro
|
|||
}
|
||||
|
||||
server := &http.Server{
|
||||
Addr: fmt.Sprintf(":%v", port),
|
||||
Handler: mux,
|
||||
ReadTimeout: 10 * time.Second,
|
||||
WriteTimeout: 30 * time.Second,
|
||||
Addr: fmt.Sprintf(":%v", port),
|
||||
Handler: mux,
|
||||
ReadTimeout: 10 * time.Second,
|
||||
ReadHeaderTimeout: 10 * time.Second,
|
||||
WriteTimeout: 300 * time.Second,
|
||||
IdleTimeout: 120 * time.Second,
|
||||
}
|
||||
glog.Fatal(server.ListenAndServe())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue