Skip to content

Commit

Permalink
Increase timeouts to run pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jan 18, 2018
1 parent ffea85d commit 4fe8fc2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/nginx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit 4fe8fc2

Please sign in to comment.