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

copy sdpInfo when passed to and from WebRtcConnection #1304

Merged
merged 1 commit into from
Sep 25, 2018

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Sep 25, 2018

Description

This fixes potential concurrency problems when managing SdpInfo in ConnectionDescription WebRtcConnection and MediaStream, they all shared the same pointer causing problems. They don't need a shared pointer and the info can be copied when needed, at very specific points.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

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

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

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

LGTM! I think this will reduce risks for our multithreading system.

@lodoyun lodoyun merged commit 93ca6e6 into lynckia:master Sep 25, 2018
@lodoyun lodoyun deleted the fix/CopySdpInfo branch November 9, 2018 14:05
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