Skip to content

Fix missing eof when writer cancelled (#7764)#7781

Merged
Dreamsorcerer merged 1 commit into3.9from
patchback/backports/3.9/9c071217f6594cb7da7133e575bea038b488ae80/pr-7764
Nov 3, 2023
Merged

Fix missing eof when writer cancelled (#7764)#7781
Dreamsorcerer merged 1 commit into3.9from
patchback/backports/3.9/9c071217f6594cb7da7133e575bea038b488ae80/pr-7764

Conversation

@Dreamsorcerer
Copy link
Copy Markdown
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
@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