tus: retry only after 2-minute wait
There is anecdote that we need to wait up to 2 minutes to preven the locking scenario. `https://github.com/tus/tusd/pull/667#issuecomment-1079647640` ## Change Instead of multiple retries at short intervals, do a one-time retry after a 2-minute wait. We'll do this until the fix is available in tusd v2.
This commit is contained in:
parent
4fffb035de
commit
e358f0715d
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ export default function WebUploadItem(props: Props) {
|
||||||
if (status) {
|
if (status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 'retry':
|
case 'retry':
|
||||||
return __('Retrying...');
|
return __('Uploading...');
|
||||||
case 'error':
|
case 'error':
|
||||||
return __('Failed.');
|
return __('Failed.');
|
||||||
case 'conflict':
|
case 'conflict':
|
||||||
|
|
|
@ -70,7 +70,7 @@ export function makeResumableUploadRequest(
|
||||||
const uploader = new tus.Upload(file, {
|
const uploader = new tus.Upload(file, {
|
||||||
...urlOptions,
|
...urlOptions,
|
||||||
chunkSize: UPLOAD_CHUNK_SIZE_BYTE,
|
chunkSize: UPLOAD_CHUNK_SIZE_BYTE,
|
||||||
retryDelays: [40000, 60000],
|
retryDelays: [122000],
|
||||||
parallelUploads: 1,
|
parallelUploads: 1,
|
||||||
storeFingerprintForResuming: false,
|
storeFingerprintForResuming: false,
|
||||||
urlStorage: new NoopUrlStorage(),
|
urlStorage: new NoopUrlStorage(),
|
||||||
|
|
Loading…
Reference in a new issue