Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/1.6] retry request on writer reset #7461

Merged
merged 1 commit into from Oct 5, 2022

Commits on Oct 1, 2022

  1. retry request on writer reset

    when a put request is retried due to the response from registry,
    the body of the request should be seekable. A dynamic pipe is added
    to the body so that the content of the body can be read again.
    Currently a maximum of 5 resets are allowed, above which will fail the
    request. A new error ErrReset is introduced which informs that a
    reset has occured and request needs to be retried.
    
    also added tests for Copy() and push() to test the new functionality
    
    Signed-off-by: Akhil Mohan <makhil@vmware.com>
    (cherry picked from commit 8f4c23b)
    Signed-off-by: Akhil Mohan <makhil@vmware.com>
    akhilerm committed Oct 1, 2022
    Copy the full SHA
    926b9c7 View commit details
    Browse the repository at this point in the history