- Status
alpha
- Documentation
A thread pool that can process file requests and send data to the socket with zero copy (using sendfile).
Challenges:
- While
sendfile
is non-blocking when writing to socket, it blocks for disk access for two cases: initialopen()
and for reading file inside thesendfile()
system call itself - Doing more than single
sendfile
operation requires some bookkeeping - It should be possible to implement file cache (both opened files and in-memory file data) transparently for the user
- [TODO] Serving user-specified file paths requires non-trivial code to prevent symlink attacks
Licensed under either of
- Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
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.