why am I managing timeouts

This commit is contained in:
Your Name 2020-08-22 13:47:32 -04:00
parent 4adacb6057
commit 619911c15e
1 changed files with 1 additions and 6 deletions

View File

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