]> Cypherpunks repositories - gostls13.git/commit
net/http: use atomic.Value for Transport's alternate protocol map
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 29 Sep 2016 15:51:29 +0000 (08:51 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 29 Sep 2016 20:43:04 +0000 (20:43 +0000)
commitc1e06dcb611822ba3c881b170f278d18237372c9
treec0630c2fbd17a0cd0131e413cbde625b91453473
parent8e69d43b32be578cd36eebe491b6e1205dbf32a4
net/http: use atomic.Value for Transport's alternate protocol map

Fix an old TODO and use atomic.Value for holding the Transport's
alternate protocol map. It is very frequently accessed and almost
never set or updated.

Change-Id: Ic5a71c504bdac76678114c6390d1fc0673e07aa9
Reviewed-on: https://go-review.googlesource.com/29967
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/transport.go