Right now I just FFI out to file:sendfile for both TCP and SSL sockets. However, sendfile does not work with SSL.
I'll need to scope this per-transport, and probably have some default implementation for SSL. Currently, ThousandIsland just does a file:pread and ssl:send... is it worth trying to do something a little less memory intensive? Not sure how likely this situation is. Maybe just add the basic one and see what people think.
Right now I just FFI out to
file:sendfile
for both TCP and SSL sockets. However,sendfile
does not work with SSL.I'll need to scope this per-transport, and probably have some default implementation for SSL. Currently,
ThousandIsland
just does afile:pread
andssl:send
... is it worth trying to do something a little less memory intensive? Not sure how likely this situation is. Maybe just add the basic one and see what people think.