]> git.openfabrics.org - ~shefty/rdma-win.git/commit
winverbs: allow WV:Disconnect() to be retried
authorSean Hefty <sean.hefty@intel.com>
Tue, 9 Mar 2010 01:53:21 +0000 (17:53 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 9 Mar 2010 01:53:21 +0000 (17:53 -0800)
commitc6f0504f1eefc7f71dda82bafe68c56d5586b40d
treee7cce3c83c48436a231c8ed19afff31b41ba8e9a
parenta1f7a8e10f4072b483c67571f2f08108babd1a57
winverbs: allow WV:Disconnect() to be retried

ND for some odd reason wants a successful return code for
a failed disconnect call.  If a Disconnect() call fails,
allow it to be retried.  Return STATUS_TIMEOUT - a 'successful'
failure, rather than STATUS_IO_TIMEOUT, which is a 'failed' failure.
(I love Windows, really, I do.)  A subsequent call to EP:
Disconnect() after a timeout will force the QP into the error
state and force the EP into the disconnected state.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>