Skip to content

Commit d6cd890

Browse files
net/http: add comments for transport gzip reader
Add back comments dropped in CL 510255 Updates #61353
1 parent 861c90c commit d6cd890

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)