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
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?
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).