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

ice_connchk_h gets called multiple times #794

Closed
pitti98 opened this issue May 8, 2023 · 1 comment · Fixed by #807
Closed

ice_connchk_h gets called multiple times #794

pitti98 opened this issue May 8, 2023 · 1 comment · Fixed by #807

Comments

@pitti98
Copy link
Contributor

pitti98 commented May 8, 2023

The problem seems to be in ice/connchk.c/pace_next().

What I see is a long call stack on the first call to my ice_connchk_h handler:

icem_checklist_update
pace_next
do_check
icem_conncheck_schedule_check
pace_next
do_check
icem_conncheck_schedule_check
... repeating for as many candidates as there are in the remote SDP

In pace_next(), if icem_conncheck_schedule_check() already determines that the checklist is done, the handler gets called. But the call to icem_checklist_update() a few lines after that does it all again, because the "if (icem->state == ICE_CHECKLIST_FAILED)" does not bail out. I think it should be "if (icem->state != ICE_CHECKLIST_RUNNING)" instead, at least that did the trick for me.

@alfredh
Copy link
Contributor

alfredh commented May 11, 2023

thanks for the report.

Could you please create a PR for this fix ?

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 a pull request may close this issue.

2 participants