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

Fix retries when response is nil #641

Merged
merged 1 commit into from
Apr 19, 2016
Merged

Conversation

ryanbrainard
Copy link
Contributor

If a failure occurs before Request.HTTPResponse is set, the retry handler will panic when trying to read Request.HTTPResponse.Body. This adds guards to the retry handler.

Note, this was partially fixed in #622, but this handles the case where the Request.HTTPResponse is completely nil (not just a nil Body).

cc: @ricardochimal @fabiokung

If a failure occurs before `Request.HTTPResponse` is set, the retry handler will panic when trying to read `Request.HTTPResponse.Body`. This adds guards to the retry handler.
@xibz
Copy link
Contributor

xibz commented Apr 19, 2016

Hello @ryanbrainard, thank you for the PR! These changes look good. I'll merge them in once the checks pass

@xibz xibz merged commit 9300ebe into aws:master Apr 19, 2016
@ryanbrainard ryanbrainard deleted the fix-retry-nil-resp branch April 19, 2016 22:10
xibz added a commit that referenced this pull request Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants