]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Fix hang in rrecv/rsend after disconnecting
authorSean Hefty <sean.hefty@intel.com>
Sat, 26 May 2012 00:24:08 +0000 (17:24 -0700)
committerSean Hefty <sean.hefty@intel.com>
Sun, 27 May 2012 23:55:19 +0000 (16:55 -0700)
commit20e84c7460057cf865a61451dae583feadf7d6a5
tree1f4b9e8b1201e5fac58e29366786f53b07faf3f1
parent4f1e1a0f9774bec1ce86499234e166ca461e0644
rsocket: Fix hang in rrecv/rsend after disconnecting

If a user calls rrecv() after a blocking rsocket has been disconnected,
it will hang.  This problem and the cause was reported by Sirdhar Samudrala
<samudrala@us.ibm.com>.  It can be reproduced by running netserver -f -D
using the rs-preload library.  A similar issue exists with rsend().

Fix this by not blocking on a CQ unless we're connected.

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