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

new round tripper package #296

Closed
wants to merge 7 commits into from

Conversation

pieceofsoul
Copy link
Contributor

The old roundtripper package did not preserve the request body on retries. This has been solve by exchanging to another package providing that handling.

@daemonfire300
Copy link
Contributor

Lgtm

default:
return nil, err
}
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep mapping the ErrRetryFailed as code may depends on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The used package does not provide a dedicated error on exceeded retry. Instead the normal request error / status is returned. Currently I do not see an easy way to achieve this.

http/transport/retry_round_tripper_test.go Outdated Show resolved Hide resolved
@daemonfire300
Copy link
Contributor

Pipeline red?

@pieceofsoul
Copy link
Contributor Author

Closing in favour of #326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants