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

Issue 6347061: code review 6347061: net/http: fix Transport race(s) with high GOMAXPROCS (Closed)

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

Description

net/http: fix Transport race(s) with high GOMAXPROCS Also adds a new test for GOMAXPROCS=16 explicitly, which now passes reliably in a stress loop like: $ go test -c $ (while ./http.test -test.v -test.run=Concurrency; do echo pass; done ) 2>&1 | tee foo; less foo (It used to fail very quickly and reliably on at least Linux/amd64) Fixes issue 3793

Patch Set 1 #

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

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

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

Total comments: 7

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

Patch Set 6 : diff -r 65de4b905541 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -9 lines) Patch
M src/pkg/net/http/transport.go View 1 2 3 4 13 chunks +47 lines, -9 lines 0 comments Download
M src/pkg/net/http/transport_test.go View 1 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 9
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 10 months ago (2012-07-03 22:42:27 UTC) #1
bradfitz
FYI I fought this all day. There are some gross parts but I tried to ...
11 years, 10 months ago (2012-07-03 22:49:38 UTC) #2
adg
This looks reasonable to me, but I think you should wait until next week and ...
11 years, 10 months ago (2012-07-03 23:25:37 UTC) #3
bradfitz
http://codereview.appspot.com/6347061/diff/3003/src/pkg/net/http/transport.go File src/pkg/net/http/transport.go (right): http://codereview.appspot.com/6347061/diff/3003/src/pkg/net/http/transport.go#newcode267 src/pkg/net/http/transport.go:267: log.Fatalf("dup idle pconn %p in freelist", pconn) On 2012/07/03 ...
11 years, 9 months ago (2012-07-09 16:54:14 UTC) #4
bradfitz
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 9 months ago (2012-07-09 16:54:40 UTC) #5
bradfitz
I probably shouldn't review my own CL. On Mon, Jul 9, 2012 at 3:08 PM, ...
11 years, 9 months ago (2012-07-09 22:34:17 UTC) #6
r
it was a mouse-o. i think i fixed it by setting it to noone before ...
11 years, 9 months ago (2012-07-09 22:36:09 UTC) #7
adg
LGTM
11 years, 9 months ago (2012-07-11 16:38:21 UTC) #8
bradfitz
11 years, 9 months ago (2012-07-11 23:40:50 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=81f45da9df0d ***

net/http: fix Transport race(s) with high GOMAXPROCS

Also adds a new test for GOMAXPROCS=16 explicitly, which now passes
reliably in a stress loop like:

$ go test -c
$ (while ./http.test -test.v -test.run=Concurrency; do echo pass; done ) 2>&1 |
tee foo; less foo

(It used to fail very quickly and reliably on at least Linux/amd64)

Fixes issue 3793

R=golang-dev, adg, r
CC=golang-dev
http://codereview.appspot.com/6347061
Sign in to reply to this message.

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