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

Fix stuttering and freezing of client while computing sync state changes (macOS VFS) #7397

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

claucambra
Copy link
Collaborator

Every time we compute the overall sync state we check if the File Provider Extension is reachable so we can display if this has encountered a problem. The issue is that if it is not reachable, we wait 3 seconds to receive a reply, and if we do not, we wait all of those 3 seconds. Now have that happen every single time we need to compute the sync state.

This PR addresses the problem by slashing the wait time down to 1 second and adding a reachability check timeout of 300 seconds, so we will (worst case) encounter a 1 second freeze every 5 minutes instead

@claucambra
Copy link
Collaborator Author

/backport to stable-3.14

@claucambra claucambra modified the milestones: 3.14.4, 3.14.5 Nov 3, 2024
…ant to check if it is reachable

Only check every 60 seconds, this way we do not freeze the client for 3
seconds every time that we want to check the reachability while the
extension is unreachable

Signed-off-by: Claudio Cambra <[email protected]>
Any longer does not really yield any positive result and freezes the
client for longer

Signed-off-by: Claudio Cambra <[email protected]>
@claucambra claucambra force-pushed the bugfix/mac-vfs-syncstatechange-freeze branch from 5682431 to c48ecf8 Compare November 5, 2024 05:59
@claucambra claucambra merged commit 01da699 into master Nov 5, 2024
9 of 14 checks passed
@claucambra claucambra deleted the bugfix/mac-vfs-syncstatechange-freeze branch November 5, 2024 05:59
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-7397-c48ecf8d60f555059435f923bcab3744fc1bd46e-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

Copy link

sonarcloud bot commented Nov 5, 2024

@Rello Rello modified the milestones: 3.14.5, 3.15.0 Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants