This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channel: support communication channel hotplug
Since communication channel (vsock or serial port) is hot plugged by the runtime, newChannel iterates in a loop looking for the serial port or vsock device. The timeout is defined by channelExistMaxTries and channelExistWaitTime and it can be calculated by using the following operation: ``` (channelExistMaxTries * channelExistWaitTime) / 1000 = timeout in seconds ``` If there are neither vsocks nor serial ports, an error is returned. fixes #298 Signed-off-by: Julio Montes <[email protected]>
- Loading branch information
Julio Montes
committed
Aug 8, 2018
1 parent
fcfa054
commit f6486e7
Showing
3 changed files
with
96 additions
and
18 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