Mailing List Archive

Question on supporting sendfile()
Hi all,

sendfile() could be enabled in NGINX(https://www.sobyte.net/post/2022-08/nginx-send/). 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?

Best Regards
Haojian
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
Re: Question on supporting sendfile() [ In reply to ]
On 06/03/2024 16:35, Haojian Zhuang wrote:
> sendfile() could be enabled in NGINX(https://www.sobyte.net/post/2022-08/nginx-send/).
> 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?

Under what circumstances do you think OpenSSH sends a file from the
local filesystem directly over a socket, without encrypting or
decrypting it first?
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
Re: Question on supporting sendfile() [ In reply to ]
On 2024/03/06 09:35, Haojian Zhuang wrote:
> sendfile() could be enabled in NGINX(https://www.sobyte.net/post/2022-08/nginx-send/). 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
implementation).

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev