SUNRPC: Ensure that the TCP socket is closed when in CLOSE_WAIT
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 12 Sep 2012 20:49:15 +0000 (16:49 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:48:37 +0000 (03:48 +0100)
commit4dad484180d610ab1ce8f87124526c05f7d71d74
tree4d4c5b8da92460d20e277c713883170b3439e909
parent20a94a21d7cc392568e70c945983ecf5a79851ff
SUNRPC: Ensure that the TCP socket is closed when in CLOSE_WAIT

commit a519fc7a70d1a918574bb826cc6905b87b482eb9 upstream.

Instead of doing a shutdown() call, we need to do an actual close().
Ditto if/when the server is sending us junk RPC headers.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/sunrpc/xprtsock.c