]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Handle other shutdown option
authorSean Hefty <sean.hefty@intel.com>
Mon, 25 Jun 2012 21:19:54 +0000 (14:19 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 27 Jun 2012 22:06:37 +0000 (15:06 -0700)
commitcbdea5d2bc984ec26fcc85ee04cb77f76147e9de
treefc740213810d83b3296beb8b580626fb77d698d1
parent52ee17ec6697c63e048d2c875371e6ab452c0541
rsocket: Handle other shutdown option

Handle SHUT_RD and SHUT_WR shutdown options.

In order to handle shutting down the send and receive sides
separately, we break the connection state into multiple sub-states.
This allows us to be partially connected (i.e. for either just
reads or just writes).

Support for SHUT_WR is needed to handle netperf properly, which
shuts down a socket by having the client use SHUT_WR, followed by
the server completing the disconnect with SHUT_RDWR.  The following
patch eliminates an error message from netperf:

'shutdown_control: no response received  errno 95'

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/rsocket.c