[net] http2: make the error channel pool per-Server

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
12:50 PM (10 hours ago) 12:50 PM
to Damien Neil, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Nicholas Husin, Nicholas Husin, Brian Palmer, Brad Fitzpatrick, Brad Fitzpatrick, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
http2: make the error channel pool per-Server

Channels can't be shared across synctest bubbles, so a global pool causes
panics when using an http2.Server in a bubble. Make the pool per-Server.
A Server can't be shared across bubbles anyway (it contains channels)
and outside of tests most programs will have a single Server.

Fixes golang/go#75674
Change-Id: I966f985e1b9644bdf8ae81d9abb142d80320cc82
Auto-Submit: Nicholas Husin <n...@golang.org>
Reviewed-by: Brad Fitzpatrick <brad...@golang.org>
Reviewed-by: Nicholas Husin <hu...@google.com>
Reviewed-by: Nicholas Husin <n...@golang.org>
Files:
  • M http2/http2.go
  • M http2/http2_test.go
  • M http2/server.go
Change size: M
Delta: 3 files changed, 35 insertions(+), 28 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Nicholas Husin, +2 by Brad Fitzpatrick, +1 by Nicholas Husin
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: net
Gerrit-Branch: master
Gerrit-Change-Id: I966f985e1b9644bdf8ae81d9abb142d80320cc82
Gerrit-Change-Number: 708135
Gerrit-PatchSet: 4
Gerrit-Owner: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Brad Fitzpatrick <brad...@golang.org>
Gerrit-Reviewer: Brad Fitzpatrick <brad...@tailscale.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
Gerrit-CC: Brian Palmer <bri...@tailscale.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages