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

Open Document Timeout #14510

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

alexknop
Copy link

@alexknop alexknop commented Feb 6, 2025

Problem:

When offline and attempting to open a document via the Document Provider, the wait time is excessive.

CheckEtagRemoteOperation is reporting ETAG_CHANGED when the connection times out to the server, thus triggering needsDownload.

Instead, if the file is saved offline and the etag cannot be read from the server, there is no need for download.

Solution:

Implemented shorter timeouts than the default, which would take longer than is necessary.

If the etag has changed and we have a connection to the server, then result's data will be populated.
We now check whether this data exists.
If data returns null (which results from a timeout), then we return false. This skips the unnecessary download attempt.

Fixes #14478

@alexknop alexknop force-pushed the OpenDocumentTimeout branch 2 times, most recently from 828feec to 4c559c3 Compare February 10, 2025 18:45
@alexknop alexknop force-pushed the OpenDocumentTimeout branch from 4c559c3 to 2b56779 Compare February 11, 2025 14:58
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.

OpenDocument Has Long Timeout For Opening Files When Offline
1 participant