]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Improve disconnect time under normal conditions
authorSean Hefty <sean.hefty@intel.com>
Fri, 27 Jul 2012 17:46:42 +0000 (10:46 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 30 Jul 2012 18:33:02 +0000 (11:33 -0700)
commitb8f3b02178571b9db3f31520c49b85c0fdc4bf65
treed24dd0fae6823a86b3a40de76ff29ff00831ae09
parentf997b1b02f5e4d46a8571b9c1601c6929ebcd808
rsocket: Improve disconnect time under normal conditions

When both sides of a connection attempt to close at the same
time, one of the two sides can easily get an error when sending
a disconnect message.  This results in that side hanging
during close until the send times out.  (The time out is caused
by the remote side destroying its QP.)

We can reduce the chance of this occurring by immediately
assuming that the disconnect has been successful once we've
received the remote side's disconnect message, or we've
polled a send completion for the local disconnect message.

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