Skip to content

Commit 77b93d4

Browse files
AlexanderYastrebovgopherbot
authored andcommitted
net/http: add comments for transport gzip reader
Add back comments dropped in CL 510255 Updates golang#61353 Change-Id: Ie84610b830599e178140bb5c2a11be74b2ad461e GitHub-Last-Rev: d6cd890 GitHub-Pull-Request: golang#75293 Reviewed-on: https://go-review.googlesource.com/c/go/+/701395 Reviewed-by: Sean Liao <[email protected]> Reviewed-by: Mark Freeman <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Auto-Submit: Michael Pratt <[email protected]>
1 parent 30d510c commit 77b93d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/http/transport.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,8 +3046,8 @@ type gzipReader struct {
30463046
_ incomparable
30473047
body *bodyEOFSignal // underlying HTTP/1 response body framing
30483048
mu sync.Mutex // guards zr and zerr
3049-
zr *gzip.Reader
3050-
zerr error
3049+
zr *gzip.Reader // stores gzip reader from the pool between reads
3050+
zerr error // sticky gzip reader init error or sentinel value to detect concurrent read and read after close
30513051
}
30523052

30533053
type eofReader struct{}

0 commit comments

Comments
 (0)