]> 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)
commit8ba3be5f12ffff6818c394d0b0589cb713f68841
treeb5df9cc04d6e7629ae937bfe9bbc3c7da5193ea0
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>