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

Check TURN servers periodically, and at start of calls #1634

Merged
merged 4 commits into from
Mar 9, 2021

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Mar 8, 2021

Hopefully this should make our turn-credential checking code a bit
more robust (and possibly fix a seconds / ms mismatch).

See also matrix-org/matrix-react-sdk#5730

dbkr added 2 commits March 8, 2021 18:49
Hopefully this should make our turn-credential checking code a bit
more robust (and possibly fix a seconds / ms mismatch).
@dbkr dbkr requested a review from a team March 8, 2021 18:55
@t3chguy
Copy link
Member

t3chguy commented Mar 8, 2021

If we're checking at the start of calls when why do we need to do it periodically too?

@dbkr
Copy link
Member Author

dbkr commented Mar 8, 2021

We may have failed to get credentials, in which case checking before the call will cover us for the case where the user tries to call before we retry fetching credentials.

dbkr added 2 commits March 9, 2021 14:09
Bit of a re-organisation so a peerconnection exists when the tests
go to mock things out. placeCall methods return promises to make this
possible.
@dbkr
Copy link
Member Author

dbkr commented Mar 9, 2021

after much fighting with tests, some more changes

@dbkr dbkr requested a review from t3chguy March 9, 2021 14:44
@dbkr dbkr merged commit 6c5fc15 into develop Mar 9, 2021
@t3chguy t3chguy deleted the dbkr/check_turn_interval branch May 10, 2022 14:37
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 this pull request may close these issues.

2 participants