-
-
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.
Fix WebSocket server heartbeat timeout logic (#8546)
Co-authored-by: J. Nick Koston <nick@koston.org> (cherry picked from commit 4140b0e)
- 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