-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env (interactive mode): timeout for blocking operations (#440)
The `open`ing of the communication named pipes and the `read` operations are blocking. This introduces a timeout. High level: - we associate a thread with `open`, which waits for a signal (Event), with a timeout. If it times out, the thread opens the associated pipe, which unblocks the main `open` - writes aren't expected to block - reads are. To address, we poll (`select.select`) before reading, with a timeout. The design treats the timeout as resetting for each blocking op. This is just to simplify the design - rather than checking passed time.
- Loading branch information
Showing
2 changed files
with
383 additions
and
11 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
Oops, something went wrong.