-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #8546/a561fa99 backport][3.10] Fix WebSocket server heartbeat tim…
…eout logic (#8573) Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Arcadiy Ivanov <arcadiy@ivanov.biz>
- Loading branch information
Showing
3 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Fixed WebSocket server heartbeat timeout logic to terminate `receive` and return :py:class:`~aiohttp.ServerTimeoutError` -- by :user:`arcivanov`. | ||
|
||
When a WebSocket pong message was not received, the | ||
:py:meth:`~aiohttp.ClientWebSocketResponse.receive` operation did not terminate. | ||
This change causes `_pong_not_received` to feed the `reader` an error message, causing | ||
pending `receive` to terminate and return the error message. The error message contains | ||
the exception :py:class:`~aiohttp.ServerTimeoutError`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters