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

PeerConnection is not removed after unpublish #1753

Open
vpoddubchak opened this issue Sep 15, 2021 · 4 comments
Open

PeerConnection is not removed after unpublish #1753

vpoddubchak opened this issue Sep 15, 2021 · 4 comments

Comments

@vpoddubchak
Copy link
Contributor

vpoddubchak commented Sep 15, 2021

Description

PeerConnection remains active after Unpublish of media in BasicExample.

Steps to reproduce the issue:

  1. Deploy the latest licode in docker by this command: MIN_PORT=30000; MAX_PORT=30150; sudo docker run --name licode -p 3000:3000 -p $MIN_PORT-$MAX_PORT:$MIN_PORT-$MAX_PORT/udp -p 3001:3001 -p 3004:3004 -p 8080:8080 -e "MIN_PORT=$MIN_PORT" -e "MAX_PORT=$MAX_PORT" -e "PUBLIC_IP=<your_domain>" lynckia/licode:develop
  2. Configure nginx and licode to use ssl based on this instruction: http://lynckia.com/licode/nginx-dep.html
  3. Open page <your_domain> and see your local preview on BasicExample page (and no errors in console)
  4. Open chrome://webrtc-internals page to check that PeerConection object is active
  5. Press Unpublish btn on BasicExample page
  6. Check webrtc-internals page: PeerConnection is still active. It will disapper only when tab with BasicExample will be closed.

Note:

  • The same happens when you unsubscribe to a participant.
  • This is something new: we did not see such issue before.
@vpoddubchak
Copy link
Contributor Author

Our tests shows that it start to happen after this commit:
da4c767

@vpoddubchak
Copy link
Contributor Author

I did mistake. Commit which caused this bug is: 279d4d8

@david-morales
Copy link

Hello, we have reproduced this issue and it is a blocker issue for our use case (lots of subscriptions).

This problem can cause this error : "Failed to construct 'RTCPeerConnection': Cannot create so many PeerConnections"

while handling lots of subscriptions or stream recoveries.

Since the connections are being piled up just by starting/ending the subscriptions, it could be easy to reproduce in certain use cases.

@lodoyun
Copy link
Contributor

lodoyun commented Dec 20, 2021

This is a byproduct of how we handle unified plan. I would suggest enabling single PeerConnection (singlePC) if you are going to have many subscriptions in a session.

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

No branches or pull requests

3 participants