Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(352)

Issue 5656046: code review 5656046: net/http: fix client goroutine leak with persistent con... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by bradfitz
Modified:
13 years, 10 months ago
Reviewers:
rsc
CC:
golang-dev, adg, bradfitzgoog, kevlar
Visibility:
Public.

Description

net/http: fix client goroutine leak with persistent connections Thanks to Sascha Matzke & Florian Weimer for diagnosing.

Patch Set 1 #

Patch Set 2 : diff -r b5c8fff57c63 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r b5c8fff57c63 https://go.googlecode.com/hg/ #

Total comments: 7

Patch Set 4 : diff -r b5c8fff57c63 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 909588a472e5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -6 lines) Patch
M src/pkg/net/http/transport.go View 1 4 chunks +15 lines, -6 lines 0 comments Download
M src/pkg/net/http/transport_test.go View 1 2 3 2 chunks +61 lines, -0 lines 0 comments Download

Messages

Total messages: 10
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2012-02-14 00:06:21 UTC) #1
adg
LGTM for the fix Some comments about the test. http://codereview.appspot.com/5656046/diff/4001/src/pkg/net/http/transport_test.go File src/pkg/net/http/transport_test.go (right): http://codereview.appspot.com/5656046/diff/4001/src/pkg/net/http/transport_test.go#newcode651 src/pkg/net/http/transport_test.go:651: ...
13 years, 10 months ago (2012-02-14 00:17:30 UTC) #2
bradfitz
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2012-02-14 00:29:20 UTC) #3
bradfitzgoog
PTAL http://codereview.appspot.com/5656046/diff/4001/src/pkg/net/http/transport_test.go File src/pkg/net/http/transport_test.go (right): http://codereview.appspot.com/5656046/diff/4001/src/pkg/net/http/transport_test.go#newcode651 src/pkg/net/http/transport_test.go:651: n0 := runtime.Goroutines() On 2012/02/14 00:17:30, adg wrote: ...
13 years, 10 months ago (2012-02-14 00:29:26 UTC) #4
kevlar
LGTM though I have been bitten later by these sorts of tests (counting active goroutines) ...
13 years, 10 months ago (2012-02-14 01:16:28 UTC) #5
adg
LGTM
13 years, 10 months ago (2012-02-14 01:47:58 UTC) #6
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=e30044d9240a *** net/http: fix client goroutine leak with persistent connections Thanks to ...
13 years, 10 months ago (2012-02-14 01:49:03 UTC) #7
rsc
Appears to leak fds on darwin/386. Disabled test.
13 years, 10 months ago (2012-02-14 03:27:20 UTC) #8
bradfitz
I don't think it actually leaks. I think it just hits the OS X small ...
13 years, 10 months ago (2012-02-14 03:50:44 UTC) #9
rsc
13 years, 10 months ago (2012-02-14 03:52:18 UTC) #10
What's printing the GB of output?
Can we make it stop after printing say 10 errors?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b