]> Cypherpunks repositories - gostls13.git/commit
net/http: fix Transport race(s) with high GOMAXPROCS
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 Jul 2012 23:40:44 +0000 (16:40 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 Jul 2012 23:40:44 +0000 (16:40 -0700)
commit8a2a5013c962e4900eed0a3a4a471df293db3f40
treee4342ff888bdcd0fc6e508f827293bd21b01c790
parent2b4cc6ccb5f86d856eca2fb069b10b11aaa278bd
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 #3793

R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/6347061
src/pkg/net/http/transport.go
src/pkg/net/http/transport_test.go