PTAL On Mon, Aug 25, 2014 at 12:18 PM, <dvyukov@google.com> wrote: > > https://codereview.appspot.com/126610043/diff/40001/src/ > ...
10 years, 8 months ago
(2014-08-25 19:36:44 UTC)
#3
PTAL
On Mon, Aug 25, 2014 at 12:18 PM, <dvyukov@google.com> wrote:
>
> https://codereview.appspot.com/126610043/diff/40001/src/
> pkg/net/http/transport_test.go
> File src/pkg/net/http/transport_test.go (right):
>
> https://codereview.appspot.com/126610043/diff/40001/src/
> pkg/net/http/transport_test.go#newcode1083
> src/pkg/net/http/transport_test.go:1083: if done.v && err == nil {
> I afraid a connection still can leak here.
> Consider that a test goroutine picks up an idle conn, but the dial is
> still kicked off and it finishes before done.v is set. But
> handlePendingDial goroutine calls putIdleConn after
> tr.CloseIdleConnections.
> This scenario leaves an idle conn.
>
> https://codereview.appspot.com/126610043/
>
Issue 126610043: code review 126610043: net/http: fix data race in test
(Closed)
Created 10 years, 8 months ago by bradfitz
Modified 10 years, 8 months ago
Reviewers: gobot
Base URL:
Comments: 1