lbry-desktop/web
infinite-persistence 6bd384b01a
TUS: retry on 423_locked to try address "failed to upload chunk"
## Background
Per developer of `tus-js-client`, it is normal to occasionally encounter upload errors. The auto-retry mechanism is meant to address this.

While implementing tab-lock to prevent multiple uploads of the same file, 423_locked was used to detect this scenario. But 423_locked could also mean "the server is busy writing the chunk" (per discussion with Randy), so we kind of disabled the auto-retry mechanism accidentally.

Meanwhile, from a prior discussion with Randy, one of the chunk-writing duration took 3 minutes. Our current maximum of "retry after 15s" wouldn't help.

## Change
1. Given that tab-locking was improved recently and no longer reliant on the server error messages (we use secure storage to mark a file as locked), reverted the change to "skip retry on 409/423". This is now back to normal recommended behavior.
2. `tus-js-client` currently does not support variable retry delay, otherwise we could prolong the delay if the error was 423. Since we know it could take up to 3 minutes, and that we don't know if it's file-size dependant, just add another 30s retry and put a friendlier message asking the user to retry themselves after waiting a bit.
2022-01-10 16:46:57 +08:00
..
component Reduce triple call to single call, improve video loading, fix embed play button being off-center (#546) 2022-01-06 14:28:27 -05:00
effects [oEmbed] some changes and fixes (#392) 2021-12-01 10:36:52 -05:00
middleware Add favicon for Google Search results (#7205) 2021-10-01 08:09:02 -04:00
page Misc updates 2021-11-29 20:32:39 -05:00
setup TUS: retry on 423_locked to try address "failed to upload chunk" 2022-01-10 16:46:57 +08:00
src update embedly referrer param 2022-01-05 10:58:23 -05:00
static/pwa Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
stubs rename lbrytv to web 2020-05-25 17:21:02 -04:00
bundle-id.js fix uuid import with new version 2020-10-02 14:36:22 -04:00
index.js Skip checking DIST_ROOT twice 2022-01-05 09:00:28 -05:00
lbry.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
package.json Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
webpack.config.js i18n: restore ability to retrieve new i18n strings 2022-01-03 10:36:12 +08:00
webpack.sw.config.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
yarn.lock Browser push notifications (#133) 2021-10-27 10:38:10 -04:00