-
Notifications
You must be signed in to change notification settings - Fork 442
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
fix(backends): Check times of the backend servers #14012
Conversation
/backport to stable30 |
/backport to stable29 |
/backport to stable28 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works, nice!
Itβs a very narrow window we enforce, should there be some kind of threshold of a few seconds that we still accept as being valid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for some leeway.
The signaling server allows up to one minute time difference when validating tokens:
https://github.com/strukturag/nextcloud-spreed-signaling/blob/0a04ea290969cfe1ebc3ef3aaeeae1bdc49ea552/hub.go#L114-L115
then we use 45 to be on the safe side, so there are still ~15s in worst case between getting the token and sending the request? |
π sounds good |
Signed-off-by: Joas Schilling <[email protected]>
59819b8
to
ef632ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π lgtm
π οΈ API Checklist
π Checklist
docs/
has been updated or is not required