SUNRPC: Use shutdown() instead of close() when disconnecting a TCP socket
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 5 Nov 2007 20:44:12 +0000 (15:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2008 07:05:26 +0000 (02:05 -0500)
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: Trond Myklebust <Trond.Myklebust@netapp.com>

No differences found