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

[HttpClient] always yield a LastChunk in AsyncResponse on destruction #37482

Merged
merged 1 commit into from Jul 3, 2020

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jul 2, 2020

Q A
Branch? master
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

This ensures that async decorators always "see" the destruction of an AsyncResponse, via an isLast() chunk + a "canceled" state.

The diff is hard to read, here are the hints to understand what changed:

  • a __destructor has been added;
  • the passthru logic has been moved to a new method but is essentially unchanged.

@fabpot
Copy link
Member

fabpot commented Jul 3, 2020

Thank you @nicolas-grekas.

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

Successfully merging this pull request may close these issues.

None yet

3 participants