commit | e7cba59950e9c9fa6194e29b5b1e72029e3df455 | [log] [tgz] |
---|---|---|
author | Ben Noordhuis <info@bnoordhuis.nl> | Mon Sep 28 17:56:34 2020 +0200 |
committer | Thomas de Zeeuw <thomasdezeeuw@gmail.com> | Tue Dec 01 10:00:49 2020 +0000 |
tree | 6b29002c76df9c6427f0f3d134a9722e84c5aa47 | |
parent | 4879e0d32ddfd98e762fc87240e594a3ad8fca30 [diff] |
Work around 32 bits epoll_wait() bug (#1349) A bug in kernels < 2.6.37 makes timeouts larger than LONG_MAX / CONFIG_HZ (approx. 30 minutes with CONFIG_HZ=1200) effectively infinite on 32 bits architectures. The magic number is the same constant used by libuv, see commit libuv/libuv@d1b5008e76.
Mio is a lightweight I/O library for Rust with a focus on adding as little overhead as possible over the OS abstractions.
API documentation
This is a low level library, if you are looking for something easier to get started with, see Tokio.
To use mio
, first add this to your Cargo.toml
:
[dependencies] mio = "0.6"
Then, add this to your crate root:
extern crate mio;
The following are specifically omitted from Mio and are left to the user or higher-level libraries.
Currently supported platforms:
There are potentially others. If you find that Mio works on another platform, submit a PR to update the list!
A group of Mio users hang out in the #mio channel on the Mozilla IRC server (irc.mozilla.org). This can be a good place to go for questions.
Interested in getting involved? We would love to help you! For simple bug fixes, just submit a PR with the fix and we can discuss the fix directly in the PR. If the fix is more complex, start with an issue.
If you want to propose an API change, create an issue to start a discussion with the community. Also, feel free to talk with us in the IRC channel.
Finally, be kind. We support the Rust Code of Conduct.