apps: support sendfile in s_server when ktls enabled
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Fri, 13 Mar 2020 03:24:05 +0000 (11:24 +0800)
committerPaul Yang <kaishen.yy@antfin.com>
Wed, 1 Apr 2020 11:13:25 +0000 (19:13 +0800)
commitcd81ac7be309881b282ce517f902d211a26d8b42
treebc0454408012fdd926edd1ec0e7196c3bdc414a7
parent96ebe52e897dea29664683e138877fb5eb995e4d
apps: support sendfile in s_server when ktls enabled

When the -WWW or -HTTP option is specified, s_server can choose
to use SSL_sendfile to transmit the file requested by client
with KTLS is enabled, taking full advantage of the performance
advantages of Kernel TLS, and adding the '-sendfile' command
line parameter to control this behavior.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11318)
apps/s_server.c
doc/man1/openssl-s_server.pod.in