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

Fix memory leaks from teamwork long standing notes #4345

Merged
merged 1 commit into from
Apr 20, 2022
Merged

Conversation

Nargonath
Copy link
Member

@Nargonath Nargonath commented Apr 13, 2022

This is related to hapijs/teamwork#32. @kanongil spotted a memory leak on #4343 (comment). The leak stems from hapi's server.ext() method that leverages long standing Teamwork instances when no method are passed for an extension point. Since teamwork didn't clear its internal notes ref once the meeting was over, objects passed to team.attend() were never garbage collected and it also kept adding notes to an ended meeting.

The fix was provided in @hapi/teamwork@5.1.1 thus the PR only updates hapi dependency.

@Nargonath Nargonath added this to the 20.2.2 milestone Apr 13, 2022
@Nargonath Nargonath added bug Bug or defect dependency Update module dependency labels Apr 13, 2022
@Nargonath Nargonath self-assigned this Apr 13, 2022
Copy link
Member

@devinivy devinivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If someone could test hapi to ensure this fixes the leak that would be excellent, but I followed along and it all looked right to me. Thanks @Nargonath!

@devinivy devinivy merged commit 9846fa9 into master Apr 20, 2022
@devinivy devinivy deleted the update-teamwork branch April 20, 2022 02:16
@Nargonath
Copy link
Member Author

Thank you @devinivy . I didn't have bandwidth to test it out as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug or defect dependency Update module dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants