Skip to content

Commit

Permalink
[PR aio-libs#7684/30850ba backport][3.9] Fix aio-libs#7306 - Set Clie…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
ttsia authored and Xiang Li committed Dec 4, 2023
1 parent 23ff962 commit d38952f
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 130 deletions.
1 change: 1 addition & 0 deletions CHANGES/7306.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed ``ClientWebSocketResponse.close_code`` being erroneously set to ``None`` when there are concurrent async tasks receiving data and closing the connection.
Loading

0 comments on commit d38952f

Please sign in to comment.