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

Figure out long WebRTC connection times #21

Open
kristiankielhofner opened this issue Mar 24, 2023 · 2 comments
Open

Figure out long WebRTC connection times #21

kristiankielhofner opened this issue Mar 24, 2023 · 2 comments

Comments

@kristiankielhofner
Copy link
Contributor

Something happened that has drastically increased the WebRTC connection times... Still works and connects eventually but it's currently painfully slow.

@kristiankielhofner
Copy link
Contributor Author

It looks like the delay is browser side - looking at logging on both sides it looks like nothing hits air-infer-api until after the long delay. I suspect it's ICE candidate gathering and may be related to IPv6.

@lachesis
Copy link
Collaborator

It is possible to reproduce this in my environment by reloading the page. It looks like Chrome fires the icegatheringstatechange => complete event earlier on the first attempt to connect, but if you refresh, it takes much longer. The long term solution is probably to implement Trickle ICE, but the short term solution might be to attempt to connect after a pause in candidate generation. See my very janky branch for some logging related to this:
https://github.com/toverainc/air-infer-api/compare/eric/logging-ice-junk?expand=1

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

2 participants