diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-11-05 21:44:12 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 08:05:26 +0100 |
commit | e06799f958bf7f9f8fae15f0c6f519953fb0257c (patch) | |
tree | b1dd5c6bee1d7fa3ecd45f85b20b001c4af2dcdd /net/sunrpc/xprt.c | |
parent | SUNRPC: TCP clear XPRT_CLOSE_WAIT when the socket is closed for writes (diff) | |
download | linux-e06799f958bf7f9f8fae15f0c6f519953fb0257c.tar.xz linux-e06799f958bf7f9f8fae15f0c6f519953fb0257c.zip |
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: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
0 files changed, 0 insertions, 0 deletions