]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm/rsocket: Fix resetting O_NONBLOCK after calling shutdown
authorSean Hefty <sean.hefty@intel.com>
Wed, 20 Feb 2013 04:03:58 +0000 (20:03 -0800)
committerSean Hefty <sean.hefty@intel.com>
Wed, 20 Feb 2013 04:03:58 +0000 (20:03 -0800)
commit24590bc96d8871d80124d68d182c915d7efcc9e6
tree2737e70c64c9617bb741fff20192947019c4f7d9
parentbe2a2a44663282cda1a60e05c3b85275c732acc6
librdmacm/rsocket: Fix resetting O_NONBLOCK after calling shutdown

Shutdown switches an rsocket from nonblocking to blocking to
ensure that all data has been sent.  After completing all
transfers, it should switch back to nonblocking; this handles
partial shutdown situations, where only half the connection
is shut down.  However, the code uses the value of '1' to
set the nonblocking flag, rather than O_NONBLOCK.  Fix this.

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