mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Use a cancelReadCloser to automatically close the reader when the context is cancelled. Consumers are still recommended to manually close the reader, but the cancelReadCloser makes the Close idempotent. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1.5 KiB
1.5 KiB