odil icon indicating copy to clipboard operation
odil copied to clipboard

Throw a SocketClosed exception when the socket is closed.

Open cguebert opened this issue 9 years ago • 1 comments

There is currently no way to distinguish between the socket being closed and any exception occurring during message processing. As a temporary measure, I propose to send a SocketClosed exception that must be processed by the user application (as is the case with AssociationReleased and AssociationAborted). In the future, it can be interesting to rewrite parts of the StateMachine and the Transport classes to ensure correct transitions (and true asynchronous operations).

This is a possible solution to #39.

cguebert avatar Jan 02 '17 09:01 cguebert

Coverage Status

Coverage decreased (-0.04%) to 84.57% when pulling 28f009d1644f4503d3b1376818736401f0987c22 on cguebert:SocketClose into 225ddc37dd5804da3254ccd6eacee40832ed3196 on lamyj:master.

coveralls avatar Jan 02 '17 10:01 coveralls