forked from open-source-firmware/go-tcg-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/core/session: Add WithReceiveTimeout SessionOpt
Current code does not retry enough time on receive (hard-coded to 1s) and some devices (for example Intel SSDPE2KX040T8O) operation such as "PSID Revert" takes ~15s. This results always in a timeout error: "method call timed out waiting for a response" Exposing SessionOpt to override default 100*10ms polling for receive will allow calling code to override these defaults.
- Loading branch information
Showing
1 changed file
with
29 additions
and
15 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