Spdk/module/sock
Konrad Sztyber 17395e315f sock/ssl: call SSL_shutdown() prior to closing fd
OpenSSL's docs state that SSL_shutdown() should be called prior to
closing an fd to notify the peer that we want to terminate the
connection.  Otherwise, the peer might see the connection as being
terminated abruptly and might report unexpected EOF errors. We've even
seen those errors in our test scripts:

*ERROR*: spdk_sock_recv() failed, errno 107: Transport endpoint is not connected

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I111a0cc3ced13dbf3e6d18d004bbec6cac96576c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15824
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
2022-12-15 08:37:49 +00:00
..
posix sock/ssl: call SSL_shutdown() prior to closing fd 2022-12-15 08:37:49 +00:00
uring sock/uring: Fix the defect of using is_zcopy field in task. 2022-12-06 08:56:48 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
sock_kernel.h update Intel copyright notices 2022-11-10 08:28:53 +00:00