Support for sendfile(2)
andoriyu opened this issue · 1 comments
andoriyu commented
Is there way to send large files via reel? I know i should be using nginx for this, but it's an overkill for what I do.
tarcieri commented
Reel use Celluloid::IO.copy_stream
to render IO
objects:
https://github.com/celluloid/reel/blob/master/lib/reel/response/writer.rb#L33
However, this presently thunks through userspace to send files. We thunked to native ::IO.copy_stream
in the past running in a background thread. I forget what the issue was.
If this is really posing a practical problem, please open an issue on Celluloid::IO.