-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[1.x] PC not closing server side on normal hangup #3430
Comments
Yours is a good analysis, but why aren't you closing the PC on the client side too when sending the "hangup"? Our SIP demo does, and I would have expected everyone to do the same. |
That's an option, I guess. If you think this behaviour is fine we can close the peer connections client side sooner than before. Currently we do cleanup once we receive the hangup event back from janus (the |
Makes sense. Starting from the assumption that I'm not going to revert the PR/commit you mentioned (which had a much serious impact on the status of sessions), I think the main issue here is related to timing and the order of things happening, that in this specific case lead to an internal cleanup in the plugin ( Rather than overcomplicate things, maybe there's an easier fix: in your last bullet point, always call both Can you try changing this block here:
to something like this instead
and let me know how that works for you? If I'm right, it should address your issue and at the same time not introduce any regression (due to the idempotent nature of |
That seems to have fixed our problem, I did a few tests myself and kept a single janus instance running automated tests for the past ~8 hours and no other problems were observed. Do you want to commit that to master directly or should I create a PR? |
No need, I'll push the commit myself to both master and 0.x shortly. |
What version of Janus is this happening on?
Newest master, e.g. 504daf5aef333d6f37e41c30b00be24cfb6c83bf
Have you tested a more recent version of Janus too?
Yes, master branch is affected.
Was this working before?
Yes, this was broken with the change in this commit:
0f32c32
Additional context
Given a session with janus SIP plugin:
Result: PC remains open, after a while we receive DTLS alert which causes PC closure.
The text was updated successfully, but these errors were encountered: