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 missing eof when writer cancelled (#7764) #7781

Conversation

Dreamsorcerer
Copy link
Member

Fixes #5220.

I believe this is a better fix than #5238. That PR detects that we didn't finish sending a chunked response and then closes the connection. This PR ensures that we simply complete the chunked response by sending the EOF bytes, allowing the connection to remain open and be reused normally.

(cherry picked from commit 9c07121)

Fixes #5220.

I believe this is a better fix than #5238. That PR detects that we
didn't finish sending a chunked response and then closes the connection.
This PR ensures that we simply complete the chunked response by sending
the EOF bytes, allowing the connection to remain open and be reused
normally.

(cherry picked from commit 9c07121)
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Nov 3, 2023
@Dreamsorcerer Dreamsorcerer enabled auto-merge (squash) November 3, 2023 00:37
@Dreamsorcerer Dreamsorcerer merged commit 79f5266 into 3.9 Nov 3, 2023
24 of 29 checks passed
@Dreamsorcerer Dreamsorcerer deleted the patchback/backports/3.9/9c071217f6594cb7da7133e575bea038b488ae80/pr-7764 branch November 3, 2023 01:30
xiangxli pushed a commit to xiangxli/aiohttp that referenced this pull request Dec 4, 2023
Fixes aio-libs#5220.

I believe this is a better fix than aio-libs#5238. That PR detects that we
didn't finish sending a chunked response and then closes the connection.
This PR ensures that we simply complete the chunked response by sending
the EOF bytes, allowing the connection to remain open and be reused
normally.

(cherry picked from commit 9c07121)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant