]> Cypherpunks repositories - gostls13.git/commit
net/http/pprof: return error when requested profile duration exceeds WriteTimeout
authorKale Blankenship <kale@lemnisys.com>
Mon, 23 Jan 2017 01:16:59 +0000 (17:16 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 8 Feb 2017 20:23:20 +0000 (20:23 +0000)
commit39366326cc2600792a9d9f8c170aae5bc1613d25
tree31788b79defa04d659886dcdd6d8492abd3635e3
parent7bd968fbfdfd943d8bfc3f6f48b47c5fe990f9ba
net/http/pprof: return error when requested profile duration exceeds WriteTimeout

Updates Profile and Trace handlers to reject requests for durations >=
WriteTimeout.

Modifies go tool pprof to print the body of the http response when
status != 200.

Fixes #18755

Change-Id: I6faed21685693caf39f315f003039538114937b0
Reviewed-on: https://go-review.googlesource.com/35564
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/pprof/internal/fetch/fetch.go
src/net/http/pprof/pprof.go