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

Can I invoke discardRequest() in JxioSessionClosedException's handler? #23

Open
lynus opened this issue Jun 13, 2016 · 0 comments
Open

Comments

@lynus
Copy link

lynus commented Jun 13, 2016

According to JXIO API doc for ServerSession.sendResponse():

org.accelio.jxio.exceptions.JxioSessionClosedException - if session already closed. In case exception is thrown, discardRequest must be called for this message after SESSION_CLOSED event is officially recieved.

Does it mean that the message that failed to send due to this exception can only be discarded in onSessionEvent()?
My problem is, in my program, ServerSession might closes before another thread calls sendResponse(), which means discardRequest() might has no chance to be called in onSessionEvent().
Can I just discardRequest(msg) in JxioSessionClosedException handler?

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

No branches or pull requests

1 participant