-
Notifications
You must be signed in to change notification settings - Fork 44
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
Panic in Rtc:accepts()
caused by ICE code
#460
Comments
Hi @OxleyS, welcome to str0m! How did you set up this proof of concept? SDP or the lower level APIs? The error message is maybe too opaque, but it's a config fault to not have the remote ice credentials set when starting to accept STUN traffic. For SDP this should be impossible, but for the direct API it probably is possible to misconfigure. |
Hi algesten, my proof-of-concept is hacking on the I do agree with your assessment that it would seem impossible to run into this case, as remote credentials should be set once the remote offer is processed, correct? I'll keep digging on my end and see what I can find. |
I think I understand the bug now. My code uses the same demultiplexing thing that the chat example uses. However, unlike the example, I add clients (and their corresponding The STUN traffic may be intended for |
Ahhh. Good find! Yeah, I agree. If this was direct api, it would be another matter, but you found a way to trigger this with SDP API only. Returning Thanks! |
Under certain circumstances which I am not totally sure of, the
Rtc::accepts()
function panics:The offender seems to be the
stun_credentials()
call, which is documented to panic on missing remote credentials, but this is not checked for before calling.Unfortunately, I don't think I can provide repro code for you anytime soon, as I was in the process of smashing out a proof-of-concept and the current code is in no position to be reduced.
The text was updated successfully, but these errors were encountered: