commit | 9f2c271364b418388d150f9c12ecbf12794095c1 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Tue Jul 26 10:08:57 2016 +0200 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Tue Jul 26 08:29:38 2016 +0000 |
tree | e70dadc4ddb2c67f48c116d24a2976fa8e2aedf9 | |
parent | 4d38db76854b199960801a1734443fd02870d7e1 [diff] |
http2: fix data race on cc.singleUse NewClientConn starts a goroutine (which reads cc.singleUse at start), so it's not safe to set cc.singleUse after calling NewClientConn. Change-Id: I5c28db15e8e8fd8ec5ef0e04b7f81e61efbd873e Reviewed-on: https://go-review.googlesource.com/25230 Reviewed-by: Andrew Gerrand <adg@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>