Commit 9233eae
[ruby/rubygems] Consume remaining gzip data in open_tar_gz to suppress zlib warning
When a GzipReader is closed before all compressed data is consumed,
zlib emits "attempt to close unfinished zstream; reset forced" warning.
This happens in open_tar_gz because the TarReader stops reading at the
end-of-archive marker, leaving unconsumed compressed data in the stream.
ruby/rubygems@2b047e11fc
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 27f24a3 commit 9233eae
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
559 | 568 | | |
560 | 569 | | |
561 | 570 | | |
| |||
0 commit comments