On 2014/04/06 11:45:32, snaury wrote: > Hello mailto:golang-codereviews@googlegroups.com (cc: > mailto:golang-codereviews@googlegroups.com), > > Please take ...
11 years, 1 month ago
(2014-04-07 01:08:48 UTC)
#3
On 2014/04/06 11:45:32, snaury wrote:
> Hello mailto:golang-codereviews@googlegroups.com (cc:
> mailto:golang-codereviews@googlegroups.com),
>
> Please take another look.
This patch stopped the leaking of goroutines of my proxy checker
https://groups.google.com/forum/#!topic/golang-nuts/FnJZ9iZ0i_g
https://codereview.appspot.com/84850043/diff/60002/src/pkg/net/http/transport_test.go File src/pkg/net/http/transport_test.go (right): https://codereview.appspot.com/84850043/diff/60002/src/pkg/net/http/transport_test.go#newcode913 src/pkg/net/http/transport_test.go:913: t.Skip("skipping test; see http://golang.org/issue/7237") I think you just copy/pasted ...
11 years, 1 month ago
(2014-04-09 18:27:42 UTC)
#4
Please take another look. https://codereview.appspot.com/84850043/diff/60002/src/pkg/net/http/transport_test.go File src/pkg/net/http/transport_test.go (right): https://codereview.appspot.com/84850043/diff/60002/src/pkg/net/http/transport_test.go#newcode913 src/pkg/net/http/transport_test.go:913: t.Skip("skipping test; see http://golang.org/issue/7237") On ...
11 years, 1 month ago
(2014-04-09 21:13:26 UTC)
#5
Please take another look.
https://codereview.appspot.com/84850043/diff/60002/src/pkg/net/http/transport...
File src/pkg/net/http/transport_test.go (right):
https://codereview.appspot.com/84850043/diff/60002/src/pkg/net/http/transport...
src/pkg/net/http/transport_test.go:913: t.Skip("skipping test; see
http://golang.org/issue/7237")
On 2014/04/09 18:27:43, bradfitz wrote:
> I think you just copy/pasted this from another test?
Yes, since other similar tests have this skip I copied it just in case.
https://codereview.appspot.com/84850043/diff/60002/src/pkg/net/http/transport...
src/pkg/net/http/transport_test.go:942: time.Sleep(400 * time.Millisecond)
On 2014/04/09 18:27:43, bradfitz wrote:
> can this test be done without the sleep & GC? I imagine it can. Exponential
> backoff up to 400 milliseconds waiting for the number of goroutines to get
back
> to the starting state should do it.
I didn't do exponential backoff or get rid of gc, but I did two things:
- loop with 20 millisecond sleeps
- stop the test early if there's no error returned from the client
Since my patch returns a valid response (as it should) there's nothing to test
for. But it is now designed to actually fail with the original code.
Also, why not use GC? Other tests do.
Issue 84850043: code review 84850043: net/http: fix requests failing on short gzip body
(Closed)
Created 11 years, 1 month ago by snaury
Modified 11 years, 1 month ago
Reviewers: gobot
Base URL:
Comments: 12