This is a legacy project, do not use it for new projects. Ruby 2.3 and later should make this obsolete. kgio provides non-blocking I/O methods for Ruby without raising exceptions on EAGAIN and EINPROGRESS.
This is a (hopefully temporary) fork of the original "sendfile" gem for Ruby 2.2.0dev compatibility. Only Linux (and maybe FreeBSD) are supported in this version. Allows Ruby programs to access sendfile(2) functionality on any IO object. Works on Linux, Solaris, FreeBSD and Darwin with blocking and non-blocking sockets.