SUNRPC: Send TLS Closure alerts before closing a TCP socket
authorChuck Lever <chuck.lever@oracle.com>
Thu, 27 Jul 2023 17:36:44 +0000 (13:36 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jul 2023 21:07:59 +0000 (14:07 -0700)
commit5dd5ad682cfe9550a37634a8f55780ebd74edbe8
treee7b31a793f1a916ad4c477108b4fb37350dab72f
parent35b1b538d422fd765d88fbdaaa6e06ee466d9f93
SUNRPC: Send TLS Closure alerts before closing a TCP socket

Before closing a TCP connection, the TLS protocol wants peers to
send session close Alert notifications. Add those in both the RPC
client and server.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Link: https://lore.kernel.org/r/169047939404.5241.14392506226409865832.stgit@oracle-102.nfsv4bat.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sunrpc/svcsock.c
net/sunrpc/xprtsock.c