-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Shutdown and reclaim server-side IM resources on underlying session going away #18580
Comments
Read/Command/Write commands are bound to The subscription has something related to session, which should be removed when Handling |
per chat with @kghost , with his below change, when report messaged fails to send with crmp retires, session would not be released and would be kept alive. And Session would be released only when there is no enough resource in session pool. It seems this feature would not be that useful since session would be kept alive for long time. |
@mrjerryjohns When a session is actually released, we are going to close the relevant exchanges. So we don't need to listen for OnSessionReleased; we just need to listen for OnExchangeClosing, right? |
For interactions that always have an open exchange, yes, this is true. For subscriptions specifically, this won't suffice. |
Nonetheless, I think the utility of this is diminished since:
Will see if this crops up as an issue during inter-op. |
@mrjerryjohns is this related to this ticket #21084? |
No, that one is about deleting IM objects on fabric deletion. This is about deleting objects on session deletion.. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I think we need a clear idea of what's left to do here, which cases would be helped but this, etc, broken out by interaction type. And perhaps separate issues by interaction type, since I expect the constraints and tradeoffs to be different... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Problem
IM resources on the server today continue to exist and linger around even if their bound session has gone away.
Proposal
Register for the
OnSessionReleased
delegate in the IM engine perhaps, and iterate over all Read/Command/Write handlers and evict those that are bound to the matching session.The text was updated successfully, but these errors were encountered: