Skip to content

Conversation

@cguebert
Copy link
Contributor

@cguebert cguebert commented Jan 2, 2017

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.

@coveralls
Copy link

Coverage Status

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants