TUS: reduce chunk size from 100MB to 25MB.

The stalling behavior has changed a bit, probably with the removal of CF.

The stall difference between 10MB and 50MB is not too noticable, so picking 25MB as a start.
This commit is contained in:
infinite-persistence 2021-11-19 14:39:28 +08:00
parent 314b63705d
commit d48a7c7295
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -7,7 +7,7 @@ import { LBRY_WEB_PUBLISH_API_V2 } from 'config';
const RESUMABLE_ENDPOINT = LBRY_WEB_PUBLISH_API_V2; const RESUMABLE_ENDPOINT = LBRY_WEB_PUBLISH_API_V2;
const RESUMABLE_ENDPOINT_METHOD = 'publish'; const RESUMABLE_ENDPOINT_METHOD = 'publish';
const UPLOAD_CHUNK_SIZE_BYTE = 100000000; const UPLOAD_CHUNK_SIZE_BYTE = 25000000;
const STATUS_CONFLICT = 409; const STATUS_CONFLICT = 409;
const STATUS_LOCKED = 423; const STATUS_LOCKED = 423;