-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change upgrades `mio` for non-MacOS / non-Android unix platforms. `mio` is used an abstraction layer over the various methods of doing `epoll`, etc on Unix platforms. There are a few notable changes this upgrade deals with: - `mio` no longer supports level-triggered events. What this means is that instead of always delivering readable events for file descriptors when there is data left to read, an event is only delivered the first time new data becomes available. The consumer is expected to try to read from descriptor until it would block. This means we have to put a loop around calls to recv for each file descriptor. Note that this might change the order that messages arrive, since before each polling operation would only give one message per fd. Now all available messages are delivered per call to poll. - The `mio` API has changed a bit. Now there's a poll registry and also `Ready` has been replaced by `Interest`.
- Loading branch information
Showing
2 changed files
with
45 additions
and
35 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