]> 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>
Fri, 27 Jul 2012 17:46:42 +0000 (10:46 -0700)
commit97feb5bdfd26f7b309cdc8d59fab475206b9356f
treefffced6494cfa5fc5f9da5527d93fb7fe504bd86
parent59cddb8c2cd143ffe205716eef276b9c502e1eb5
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.

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