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

Backup timeout improvement #2139

Closed
FastFrank opened this issue Mar 7, 2023 · 1 comment
Closed

Backup timeout improvement #2139

FastFrank opened this issue Mar 7, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@FastFrank
Copy link

The Problem

Add this before xhr.ontimeout = (e) => { // XMLHttpRequest timed out in backup.html around line 148:

xhr.onprogress = (e) => { // XMLHttpRequest progress ... extend timeout
    xhr.timeout = xhr.timeout + 500;
};
xhr.onerror = (e) => { // XMLHttpRequest error loading
    console.log("Error on fetching " + url + "!");
    if (retry > 5) {
        setStatus("<span style=\"color: red\">Backup failed, please restart the device and try again!</span>");
    }
    else {
        fetchFiles(urls, filesData, index, retry+1, zipFilename);
    }
};

Version

15.0.3

Logfile

Timeout occurs although progress is made with downloading...

Expected Behavior

No response

Screenshots

No response

Additional Context

No response

@FastFrank FastFrank added the bug Something isn't working label Mar 7, 2023
@caco3 caco3 self-assigned this Mar 8, 2023
@caco3 caco3 added enhancement New feature or request and removed bug Something isn't working labels Mar 8, 2023
@caco3
Copy link
Collaborator

caco3 commented Mar 12, 2023

Thanks, I added it in #2170

@caco3 caco3 closed this as completed Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants