Skip to content

[PR #7684/30850ba backport][3.9] Fix #7306 - Set ClientWebSocketResponse.close_code correctly in concu…#7690

Merged
Dreamsorcerer merged 1 commit intoaio-libs:3.9from
ttsia:patchback/backports/3.9/30850babb43a8e28dd2df036776c62fd613d3d89/pr-7680
Oct 11, 2023
Merged

[PR #7684/30850ba backport][3.9] Fix #7306 - Set ClientWebSocketResponse.close_code correctly in concu…#7690
Dreamsorcerer merged 1 commit intoaio-libs:3.9from
ttsia:patchback/backports/3.9/30850babb43a8e28dd2df036776c62fd613d3d89/pr-7680

Conversation

@ttsia
Copy link
Copy Markdown
Contributor

@ttsia ttsia commented Oct 10, 2023

This is a backport of PR #7680 as merged into master (30850ba).

Fixes the issue when If one asyncio task is waiting on receiving data and another asyncio task is closing the connection. The ClientWebSocketResponse.close_code will be None after connection closed.

…in concurrent closing scenario (aio-libs#7680)

(cherry picked from commit 30850ba)
@ttsia ttsia requested a review from asvetlov as a code owner October 10, 2023 06:19
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Oct 10, 2023
@Dreamsorcerer Dreamsorcerer merged commit dde1446 into aio-libs:3.9 Oct 11, 2023
xiangxli pushed a commit to xiangxli/aiohttp that referenced this pull request Dec 4, 2023
…ntWebSocketResponse.close_code correctly in concu… (aio-libs#7690)

This is a backport of PR aio-libs#7680
as merged into master
(aio-libs@30850ba).

Fixes the issue when If one asyncio task is waiting on receiving data
and another asyncio task is closing the connection. The
ClientWebSocketResponse.close_code will be None after connection closed.
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.

2 participants