Question on supporting sendfile()

Stuart Henderson stu at
Wed Mar 6 20:49:01 AEDT 2024

On 2024/03/06 09:35, Haojian Zhuang wrote:
> sendfile() could be enabled in NGINX( It could improves the performance since it could optimize to transfer data to user space. Up to now, sendfile() isn’t supported in OpenSSH yet. Will it be supported in the future?

OpenSSH doesn't send any files directly between disk and the network so
this wouldn't help. It's all encrypted.

Plain sendfile isn't very useful in a typical web server either
these days, most web traffic is encrypted, running that through a
sendfile-like mechanism is much more complicated (needing a kernel TLS

More information about the openssh-unix-dev mailing list