A thread pool for rust/tokio that can process file requests and send data to the socket with zero copy (using sendfile)
APACHE-2.0 License
:Status: alpha :Documentation: http://docs.rs/tk-sendfile
A thread pool that can process file requests and send data to the socket with zero copy (using sendfile).
Challenges:
sendfile
is non-blocking when writing to socket, it blocks foropen()
and for reading file insidesendfile()
system call itselfsendfile
operation requires some bookkeepingLicensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.