-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Device initialization timeout handling revisited
When a new device is added, ipp-usb performs several HTTP requests (IPP/eSCL) to obtain device parameters for DNS-SD advertising. Previously, the entire initialization process was governed by a single timeout, which placed different requests in the sequence at an unequal disadvantage. Additionally, fetching unnecessary response bodies was not covered by the timeout at all, which could cause ipp-usb to keep a failed USB interface busy indefinitely and prevent a clean shutdown (see #32 for details). The updated implementation uses individual timeouts for each HTTP request made during initialization and also includes a timeout for body reception.
- Loading branch information
1 parent
e76c669
commit 332b365
Showing
2 changed files
with
61 additions
and
59 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