You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deduplicate ZipArchive sync/async implementation using IReadWriteAdapter - #134179
This is the ZIP counterpart to #129282, which deduplicated the sync/async implementations of TarReader/TarWriter using the IReadWriteAdapter pattern. This PR applies the same approach to System.IO.Compression's ZIP implementation, merging each sync/async method pair.
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.
In Update mode, cancellation while the AES or ZipCrypto factory reads the encryption header now leaves _currentlyOpenForWrite set and _storedUncompressedData allocated. OperationCanceledException bypasses this cleanup, so retrying with a fresh token throws UpdateModeOneStream. Previously, the encrypted async path acquired the decryption stream before setting this state. Run this rollback for all acquisition/copy failures and rethrow the original exception. Add a regression test that cancels during the encryption-header read and then successfully retries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the ZIP counterpart to #129282, which deduplicated the sync/async implementations of
TarReader/TarWriterusing theIReadWriteAdapterpattern. This PR applies the same approach toSystem.IO.Compression's ZIP implementation, merging each sync/async method pair.Fixes #127380