2 ms·
AFAIK, neither OpenBSD nor NetBSD has sendfile. On FreeBSD, I think you're correct regarding it being file-to-socket only.
by messe 1y ago
AFAIK, neither OpenBSD nor NetBSD has sendfile. On FreeBSD, I think you're correct regarding it being file-to-socket only.
- zambal 1y agoIndeed, if I'm not mistaken Netflix at least used to use (and commit to kernel) FreeBSD on content servers because of its superior sendfile performance
- messe 1y agoNot only that, but they even contributed patches to allow the FreeBSD kernel to handle the TLS part of SSL_sendfile as well[1]. [1]: https://man.freebsd.org/cgi/man.cgi?ktls(4) https://man.freebsd.org/cgi/man.cgi?ktls(4)