Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpClient] Fix content swallowed by AsyncClient initializer#39228
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
d2fb04a tof5c0c01Compare
Nyholm left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you@jderusse for your work on this.
nicolas-grekas commentedNov 30, 2020
As discussed on Slack, this should be fixed in |
785fbe8 tobfc4b10CompareUh oh!
There was an error while loading.Please reload this page.
bfc4b10 to76c9991Compare
Nyholm left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I've tested this and I can confirm that it fixes the issue
1df90ba tob454235Compareb454235 tod324271Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM aftersome changes.
nicolas-grekas commentedDec 10, 2020
Thank you@jderusse. |
I'm not sure if it should be fixed in RetryableHttpClient or AsycClient.
The issue is: when the Strategy needs the body to take a decision BUT decide to NOT retry the request, the content is "lost"
In fact, when the first chunk is yield, the AsyncResponse's initializer is stopped, and nothing consume the remaining chunks. Moreover, because the
passthruwere disabled before yielding the first chunk in RetryableHttpClient, the callback is never called again to yield the remaining content.