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 and optimize code #1636

Merged
merged 3 commits into from
Sep 24, 2020

Conversation

jcague
Copy link
Contributor

@jcague jcague commented Sep 22, 2020

Description

I'm currently investigating cases of unsubscriptions that finish with a timeout between ErizoController and ErizoJS. While investigating those cases I found out some minor leaks and tried to optimize some logic paths.

I think it is important to look into what I'm doing when closing the WebRtcConnection because we now use a promise to do it. I've tested it locally and I'm considering testing it in a dev environment with multiple browsers.

I'm also thinking of implementing async/await instead of chaining promises, but I'll do it in a different PR.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

Not needed.

[] It includes documentation for these changes in /doc.

@jcague jcague requested a review from lodoyun September 22, 2020 15:22
Copy link
Contributor

@lodoyun lodoyun left a comment

Choose a reason for hiding this comment

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

This looks good to me 👍 . I think this addresses most (if not all) the cases I've encountered and I like the solutions proposed.

erizoAPI/WebRtcConnection.cc Outdated Show resolved Hide resolved
@jcague jcague merged commit 57965d8 into lynckia:master Sep 24, 2020
@jcague jcague deleted the fix/some_memory_leaks_and_optimize_code branch September 24, 2020 10:28
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
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.

2 participants