[openib-general] RFC on CM error handling
Libor Michalek
libor at topspin.com
Thu Jan 20 10:44:08 PST 2005
On Thu, Jan 20, 2005 at 10:20:58AM -0800, Sean Hefty wrote:
> I'm looking for comments on how to handle errors in the CM with respect
> to state transitions. If an error occurs while trying to drive the
> state of a connection endpoint, should the state transition still occur?
>
> Right now, I force the state to idle or timewait if the user makes a
> call to reject a connection, and that call fails. I also force the
> state to timewait if a call to disconnect fails.
>
> Comments? Should other error cases be handled similarly? E.g. if a
> call to send a reply fails, should the state remain the same (which
> would let the user reject the connection), should the state transition
> into the idle state, should a reject be automatically attempted, or ... ?
What sort of failure did you have in mind, synchronous or async? I
would think that if a call that is going to change-state, like send_rep
fails, the reject is going to fail as well. If it's an async failure
then it is reported as a transition into idle, right?
Another question, should I expect a REJ to be generated if the REQ or
REP handler returns an error? From the code it doesn't look like that
behaviour currently exists.
-Libor
More information about the general
mailing list