[go] net/http: prevent blocking when reading and closing gzipReader concurrently

0 views
Skip to first unread message

Nicholas Husin (Gerrit)

unread,
Jun 10, 2026, 3:30:22 PM (yesterday) Jun 10
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Cherry Mui, Damien Neil, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Nicholas Husin submitted the change

Change information

Commit message:
net/http: prevent blocking when reading and closing gzipReader concurrently

This backports the fix for an issue found while adding gzip support for
HTTP/3 in CL 785120.
Change-Id: Idf681f595c9d471db76b5ce3879a83a16a6a6964
Reviewed-by: Cherry Mui <cher...@google.com>
Reviewed-by: Damien Neil <dn...@google.com>
Files:
  • M src/net/http/internal/http2/transport.go
  • M src/net/http/transport.go
  • M src/net/http/transport_test.go
Change size: M
Delta: 3 files changed, 77 insertions(+), 2 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Idf681f595c9d471db76b5ce3879a83a16a6a6964
Gerrit-Change-Number: 788480
Gerrit-PatchSet: 2
Gerrit-Owner: Nicholas Husin <n...@golang.org>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages