diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-06-27 16:39:40 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-06-28 18:14:56 +0000 |
| commit | b5f0aff49503e31002b33198e06708e263c445a7 (patch) | |
| tree | 3e1c33f5ba496a71698ec6d242c97a6e48ac43a6 /src/database/sql/sql.go | |
| parent | 996ed3be9a10ace6cd7a8a6a8080c0c8db7ab1fe (diff) | |
| download | go-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/sql/sql.go')
0 files changed, 0 insertions, 0 deletions
