diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/debug/server.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/debug/server.go b/internal/debug/server.go index c07a4549..6a758055 100644 --- a/internal/debug/server.go +++ b/internal/debug/server.go @@ -4,6 +4,7 @@ import ( "context" "net/http" "net/http/pprof" + "time" ) // Server is a HTTP server for debugging. @@ -21,7 +22,10 @@ func NewServer() Server { mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) mux.HandleFunc("/debug/pprof/trace", pprof.Trace) - return Server{srv: &http.Server{Handler: mux}} + return Server{srv: &http.Server{ + ReadHeaderTimeout: time.Minute * 10, + Handler: mux, + }} } // Start debug server. |