This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
middleware/hsm: use blocking call over timeout (for now) (#289)
The serial package's max timeout is silently capped at 25.5s: https://github.com/tarm/serial/blob/98f6abe2eb07edd42f6dfa2a934aea469acc29b7/serial.go#L158 We need longer for the blocking HSM operations to be able to finish. We might add a shorter timeout and a repeater in the future, to still abort after a (long) time, but unless we fully go async, all those solutions are suboptimal.
- Loading branch information