rawhat / glisten

A pure gleam TCP library
Apache License 2.0
55 stars 8 forks source link

`sendfile` is not supported on SSL #15

Closed rawhat closed 6 months ago

rawhat commented 6 months ago

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.

rawhat commented 6 months ago

Whoops, this should be on mist.