KEMBAR78
fix: update GzipReadableByteChannel to be tolerant of one byte reads by BenWhitehead · Pull Request #2512 · googleapis/java-storage · GitHub
Skip to content

Conversation

BenWhitehead
Copy link
Collaborator

If the ReadChannel chunkSize is 0 there will be no library buffering performed during read calls. If gzip decompression support is enabled on the read channel, there is a possibility someone could read fewer than the 4 bytes we initially read.

This change updates the byte tracking to ensure single byte reads are supported.

If the ReadChannel chunkSize is 0 there will be no library buffering performed during read calls. If gzip decompression support is enabled on the read channel, there is a possibility someone could read fewer than the 4 bytes we initially read.

This change updates the byte tracking to ensure single byte reads are supported.
@BenWhitehead BenWhitehead added the owlbot:ignore instruct owl-bot to ignore a PR label Apr 24, 2024
@BenWhitehead BenWhitehead requested a review from a team as a code owner April 24, 2024 16:58
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Apr 24, 2024
@BenWhitehead BenWhitehead requested a review from frankyn April 24, 2024 17:46
@BenWhitehead BenWhitehead merged commit 87b63f4 into main Apr 24, 2024
@BenWhitehead BenWhitehead deleted the fix-nongzip-onebyte branch April 24, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/java-storage API. owlbot:ignore instruct owl-bot to ignore a PR size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants