For what it’s worth, this is why aio_sendfile exists on FreeBSD. It integrates with KTLS so you can send owner an encrypted socket (in-kernel encryption or offload to a SmartNIC), and provides a completion notification, which integrates with kqueue and so works with our main event loop.
For what it’s worth, this is why aio_sendfile exists on FreeBSD. It integrates with KTLS so you can send owner an encrypted socket (in-kernel encryption or offload to a SmartNIC), and provides a completion notification, which integrates with kqueue and so works with our main event loop.