Multithreaded, non-blocking Linux server framework in Rust
Multithreaded, non-blocking Linux server framework in Rust
hydrogen is a non-blocking socket server framework built atop epoll. It takes care of the tedious connection and I/O marshaling across threads, and leaves the specifics of I/O reading and writing up the consumer, through trait implementations.
hydrogen works with Stream trait Objects so any custom type can be used.
simple-stream was built in conjunction and offers several
stream abstractions and types including Plain and Secured streams with basic
and WebSocket framing.
hydrogen is multithreaded. It uses one thread for accepting incoming connections, one for updating epoll reported event, and one used for marshalling I/O into a threadpool of a user specified size.
The connection pool is managed as a slab, which means traversal times are similar to traversing a Vector, with an insertion and removal time of O(1).
…std::net::TcpStream…Nathan Sizemore, [email protected]
hydrogen is available under the MPL-2.0 license. See the LICENSE file for more info.
No open issues yet, or sync has not completed.