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.5] retry request on writer reset #7479

Merged
merged 2 commits into from Nov 17, 2022

Commits on Nov 7, 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 Nov 7, 2022
    Copy the full SHA
    77a2554 View commit details
    Browse the repository at this point in the history
  2. fix pusher concurrent close channel

    Signed-off-by: rongfu.leng <rongfu.leng@daocloud.io>
    (cherry picked from commit 63a7d8a)
    Signed-off-by: Akhil Mohan <makhil@vmware.com>
    lengrongfu authored and akhilerm committed Nov 7, 2022
    Copy the full SHA
    ac1fbc1 View commit details
    Browse the repository at this point in the history