aboutsummaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-06-27 16:39:40 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2016-06-28 18:14:56 +0000
commitb5f0aff49503e31002b33198e06708e263c445a7 (patch)
tree3e1c33f5ba496a71698ec6d242c97a6e48ac43a6 /src/database
parent996ed3be9a10ace6cd7a8a6a8080c0c8db7ab1fe (diff)
downloadgo-b5f0aff49503e31002b33198e06708e263c445a7.tar.xz
net/http: conditionally configure HTTP/2 in Server.Serve(Listener)
Don't configure HTTP/2 in http.Server.Serve(net.Listener) if the Server's TLSConfig is set and doesn't include the "h2" NextProto value. This avoids mutating a *tls.Config already in use if previously passed to tls.NewListener. Also document this. (it's come up a few times now) Fixes #15908 Change-Id: I283eed82fdb29a791f80d801aadd9f75db244de0 Reviewed-on: https://go-review.googlesource.com/24508 Reviewed-by: Andrew Gerrand <adg@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions