Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw a SocketClosed exception when the socket is closed. #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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