Skip to content
Commit e06799f9 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Use shutdown() instead of close() when disconnecting a TCP socket



By using shutdown() rather than close() we allow the RPC client to wait
for the TCP close handshake to complete before we start trying to reconnect
using the same port.
We use shutdown(SHUT_WR) only instead of shutting down both directions,
however we wait until the server has closed the connection on its side.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent ef803670
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment