net/http/pprof: return error when requested profile duration exceeds WriteTimeout #18755
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?go version go1.8rc2 darwin/amd64
As observed in #18746, if a profile duration >= to the server's WriteTimeout is requested, the request will always fail with an EOF once the WriteTimeout elapses. Handlers which accept a duration parameters should check the WriteTimeout and return an error before starting the profile.
(A handler can retrieve the server which started it from the request's context.)
The text was updated successfully, but these errors were encountered: