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

Add SSS support #129

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Add SSS support #129

merged 3 commits into from
Sep 6, 2024

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Sep 6, 2024

This uses SSS instead of SS for rust clients.

@kegsay kegsay marked this pull request as draft September 6, 2024 08:57
If the timeout between HS2 coming online again and Charlie on HS1 sending the message
is too short, HS1 will reject Charlie's attempt to `/keys/claim` with a HTTP 502
and "Not ready for retry". It does this because nothing cleared the 10 minute
backoff which was created when HS2 went offline. In SS, the backoff gets cleared
by Bob on HS2 hitting `/keys/query` on HS1. It does this due to receiving data
about Charlie (his join) promptly down `/sync`. This does not seem to happen in
SSS, instead the data does appear but only after the 30s timeout is reached. Therefore,
we need to wait at least 30s + some grace time for HS1 to realise HS2 is back online.
@kegsay kegsay requested a review from andybalaam September 6, 2024 12:09
@kegsay kegsay marked this pull request as ready for review September 6, 2024 12:10
Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@kegsay kegsay merged commit c4d78cc into main Sep 6, 2024
4 checks passed
@kegsay kegsay mentioned this pull request Sep 6, 2024
@Hywan
Copy link
Member

Hywan commented Sep 9, 2024

So smooooth…

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.

3 participants