-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Let wait_for_ecu() reconnect on all ConnectionErrors incl. hidden
Currently, a broken transport triggers a reconnect in request_unsafe(), but only in case of retries. Since wait_for_ecu specifically sets retries to 0 this is not happening and instead ConnectionErrors are transformed to UDSExceptions. This commit brings two major changes: 1. `request_unsafe` sets the __cause__ of the MissingResponse to ConnectionError to provide callers with additional information 2. `wait_for_ecu` treats a MissingRespone caused by a ConnectionError the same as a ConnectionError and calls reconnect
- Loading branch information
1 parent
02190ee
commit 1ac3519
Showing
2 changed files
with
12 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
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