Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid deadlock by closing pipe reader end
If we don't close this pipe reader with an error we ended up having a deadlock as we keep trying to read indefinitely from it. This deadlock causes the error message to be misguiding when attempting to upload a layer with invalid format (gzip: invalid header). Without this patch oc image append using an invalid layer format fails with either "timeout" (docker.io) or "protocol error" (quay.io) instead of reporting appropriate error ("invalid gzip").
- Loading branch information