-
Notifications
You must be signed in to change notification settings - Fork 177
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
Disconnect dangling clients #1132
Conversation
31b332d
to
e683699
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Minor suggestions for doc comments.
I hate to do this to you after you implemented this functionality, but I think we should seriously consider an st_connected_clients
system table rather than this strategy because of the interaction with snapshotting.
Fixes #1178 |
I'm not opposed to this, but it will be a breaking change. If that's ok, or we're willing to delay this change until it is ok, we can go the other route np. |
e683699
to
1183d26
Compare
I think certainly we're fine with breaking changes at this stage. I don't know to what extent we're willing to delay this PR; that's a question for @cloutiertyler . |
1183d26
to
defccda
Compare
When replaying the commitlog, keep track of unpaired connect/disconnect calls and call disconnect when instantiating the module.
defccda
to
5f03b08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If tested, then this LGTM
When replaying the commitlog, keep track of unpaired connect/disconnect calls and call disconnect when instantiating the module.
Expected complexity level and risk
2
Testing
Tested with
quickstart-chat
like so:quickstart-chat
to log connect / disconnect callsquickstart-chat
module