-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap TCP request reading in
async_timeout.timeout()
(#339)
There have recently been [reports of `RuntimeError: coroutine ignored GeneratorExit`] which are presumably triggered by timeouts on the socket, without being raised as `TimeoutError`. This case seems to be mitigated by timing out the request after a default of 10 seconds which doesn't give `GeneratorExit` - triggered by something yet unknown - enough time to surface. [reports of `RuntimeError: coroutine ignored GeneratorExit`]: robbinjanssen/home-assistant-omnik-inverter#116
- Loading branch information
Showing
2 changed files
with
44 additions
and
5 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
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