why am I managing timeouts
This commit is contained in:
parent
4adacb6057
commit
619911c15e
7
main.go
7
main.go
|
@ -52,12 +52,7 @@ func main() {
|
|||
|
||||
frontendProxy := httputil.NewSingleHostReverseProxy(rpURL)
|
||||
|
||||
srv := &http.Server{
|
||||
ReadTimeout: 60 * time.Second,
|
||||
WriteTimeout: 60 * time.Second,
|
||||
IdleTimeout: 30 * time.Second,
|
||||
ReadHeaderTimeout: 20 * time.Second,
|
||||
}
|
||||
srv := &http.Server{}
|
||||
if c.Strip == "" {
|
||||
if c.Log {
|
||||
srv.Handler = logRequest(frontendProxy)
|
||||
|
|
Loading…
Reference in New Issue