]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
window/FileBrowser: try reload again when getting a 503 error
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 26 Apr 2022 10:14:01 +0000 (12:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Apr 2022 13:18:59 +0000 (15:18 +0200)
commita69f23580ec75f527fde9a6e61e421b5bf6cf056
tree766cae80ccc54240ecac3d5dff9eb79563e422da
parent081b26ed59f18a062379e4fcec0ed4fabc42d23a
window/FileBrowser: try reload again when getting a 503 error

for the file restore, we return a 503 error when we were not finished
mounting a disk in the restore vm, so ignore that error and try again
(up to 10 times) so a file listing now has a "real" timeout of
up to 300 seconds (30s pveproxy timeout * 10) instead of only 30,
which should be enough for most situations.

we also increase the proxy timeout to 60 seconds, since if one has many
disks, all of them will try to load at the same time, but the browser
has a maximum request limit and will stall+queue the remaining ones. so
those will not run into the extjs timeout when we increase it here.

for older backends without the new 503 returning feature, the calls
will still run into a pveproxy timeout anyway.

we also have to reimplement the 'monStoreErrors' functionality to
get a slightly different behaviour:
we disable the default extj loadMask of the treepanel and set it
ourselves. then on 503 we leave it up, and only remove it on success
or error (for non initial loads)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/window/FileBrowser.js