aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
index 6f72a07c4..91d89a535 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
@@ -82,9 +82,10 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
82 uploaderClass: UploaderXFormData, 82 uploaderClass: UploaderXFormData,
83 chunkSize, 83 chunkSize,
84 retryConfig: { 84 retryConfig: {
85 maxAttempts: 6, 85 maxAttempts: 30, // maximum attempts for 503 codes, otherwise set to 6, see below
86 shouldRetry: (code: number) => { 86 maxDelay: 120_000, // 2 min
87 return code < 400 || code >= 501 87 shouldRetry: (code: number, attempts: number) => {
88 return code === HttpStatusCode.SERVICE_UNAVAILABLE_503 || ((code < 400 || code > 500) && attempts < 6)
88 } 89 }
89 } 90 }
90 } 91 }