commit | e06799f958bf7f9f8fae15f0c6f519953fb0257c | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Mon Nov 05 15:44:12 2007 -0500 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed Jan 30 02:05:26 2008 -0500 |
tree | b1dd5c6bee1d7fa3ecd45f85b20b001c4af2dcdd | |
parent | ef80367071dce7d2533e79ae8f3c84ec42708dc8 [diff] |
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>