-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move EZSP send lock from
EZSP
to individual protocol handlers (#649)
* Log frames that are not ACKed * Move command locking and prioritization into the protocol handler * Rename `delay_time` to `send_time` * Cancel all pending futures when the connection is lost * Increase ACK_TIMEOUTS from 4 to 5 * Increase the EZSP command timeout to 10s * Do not count the ASH send time in the EZSP command timeout * Set the NCP state to `FAILED` when we soft fail * Always handle ACK information, even if the frame is invalid * Remove stale constants from `Gateway` * Guard to make sure we can't send data while the transport is closing * Fix unit tests * Send a NAK frame on any parsing error * Reset the random seed every ASH test invocation * Remove unnecessary `asyncio.get_running_loop()` * Add a few more unit tests for coverage * Null out the transport when we are done with it * Fix typo when setting ncp_state * Fix typo with buffer truncation * Fix unit test to account for retries after NCP failure
- Loading branch information
Showing
7 changed files
with
152 additions
and
81 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
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
Oops, something went wrong.