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 empty chunk-encoded responses #151

Merged
merged 2 commits into from
Oct 3, 2019
Merged

Fix empty chunk-encoded responses #151

merged 2 commits into from
Oct 3, 2019

Conversation

seliopou
Copy link
Member

@seliopou seliopou commented Oct 2, 2019

Closes #137.

seliopou added 2 commits July 28, 2019 18:04
When responding with a streaming body of length 0, the writer gets put
into a yield state that it never wakes up from.
Especially in the case of writing the final chunk of a chunk-encoded
body, ensure that the writer is awake and will report a write to the
runtime.
@seliopou seliopou requested a review from dpatti October 2, 2019 23:27
@seliopou seliopou merged commit cc201d3 into master Oct 3, 2019
@seliopou seliopou deleted the empty-streaming branch October 3, 2019 19:41
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.

respond_with_streaming does not send anything upon body close in case of zero content length
1 participant