You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not find a solution in the documentation, the existing issues or discussions.
I already asked for help in the chat
In which Project did the bug appear?
Other
If you selected "Other" as Project, please enter in which project the bug occurred.
matrix-dart-sdk
On which platform did the bug appear?
Firefox
SDK Version
v0.38.0
Describe the problem caused by this bug
SSSS.createKey, OpenSSSS.store, Bootstrap.askSetupCrossSigning and Bootstrap.newSsss make use of Client.oneShotSync. This is a huge slow down of SSSS handling since the homeserver might simply delay the /sync request up to the local timeout if there was nothing to sync. I'd propose to rather explicitly match on whether the keys are uploaded and locally processed than waiting for a sync.
Steps To Reproduce
Create an empty account
Run SSSS boostrap
Wait for a loooooooong time
Screenshots or Logs
No response
Security related
Just do not in-carefully change this.
The text was updated successfully, but these errors were encountered:
Hey thank you for the feedback. I took a look into the code and don't yet see where this delays something. On the one hand it looks very similar to await client.onSync.stream.where(//Filter here for desired account data key and actually it was like this before but has been changed (don't know the reason maybe filtering in sync had problems with type escaping?)
However the current approach is just to wait until the next sync is finished and then check again what we have in memory and repeat this. While this is only waiting for the next sync if account data is not updated. This does not delay anything as we have to wait for the sync anyway to continue. I don't see where this would be faster than filtering the sync stream
Yeah, I get what you mean. I don't have an easy proposal on how to better handle this. But fact is, on a completely new account, this causes SSSS bootstrap to take 5 - 10 minutes since each and every account data change first runs into a network timeout of 40 seconds (default SDK behavior) since there is nothing to sync. One approach might be to add fake syncs to the stream similar to sending an event in a room in order to have the updated account data available immediately after it was uploaded.
Checklist
In which Project did the bug appear?
Other
If you selected "Other" as Project, please enter in which project the bug occurred.
matrix-dart-sdk
On which platform did the bug appear?
Firefox
SDK Version
v0.38.0
Describe the problem caused by this bug
SSSS.createKey
,OpenSSSS.store
,Bootstrap.askSetupCrossSigning
andBootstrap.newSsss
make use ofClient.oneShotSync
. This is a huge slow down of SSSS handling since the homeserver might simply delay the/sync
request up to the local timeout if there was nothing to sync. I'd propose to rather explicitly match on whether the keys are uploaded and locally processed than waiting for a sync.Steps To Reproduce
Screenshots or Logs
No response
Security related
Just do not in-carefully change this.
The text was updated successfully, but these errors were encountered: