-
-
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.
Make sure to unblock the `receive` operation by feeding the receiver an error in a `WSMessage` Change `TimeoutError` to `ServerTimeoutError` to accurately represent failure (this is backwards compatible since `ServerTimeoutError` has `TimeoutError` in the MRO) fixes #8540
- Loading branch information
Showing
3 changed files
with
43 additions
and
3 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 @@ | ||
WSS: Fix heartbeat timeout logic -- by :user:`arcivanov`. | ||
|
||
The :py:meth:`~aiohttp.client_ws.ClientWebSocketResponse._pong_not_received` did not | ||
terminate a :py:meth:`~aiohttp.client_ws.ClientWebSocketResponse.receive` operation. | ||
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.client_exceptions.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