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

PushRegistrationHandler holds onto ChannelHandlerContext references #1294

Merged
merged 3 commits into from
Aug 31, 2022

Conversation

jguerra
Copy link
Collaborator

@jguerra jguerra commented Aug 30, 2022

After a client successfully authenticates PushRegistrationHandler registers a timer to requestClientToCloseConnection. However, if the client connection terminates prematurely (connection reset, etc) the scheduled task does not go away and maintains a reference ChannelHandlerContext. This PR adds logic to track scheduled tasks and cancel them when the channel becomes inactive

@artgon
Copy link
Contributor

artgon commented Aug 30, 2022

Would be nice to have a test for this class, but otherwise, LGTM.

@jguerra
Copy link
Collaborator Author

jguerra commented Aug 31, 2022

Added tests

@jguerra jguerra merged commit 7d66b39 into master Aug 31, 2022
@jguerra jguerra deleted the jg/push_mem_leak branch February 29, 2024 21:45
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.

3 participants