This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid unnecessary exception in TimeoutStream (#1015)
Underlying stream implementation may throw if we try to set a read/write timeout on a non-readable or non-writable stream. Add an additional check to prevent this exception from being thrown. Since this gets hit on every blob read, the impact is fairly significant for services which download many blobs.
- Loading branch information