tus: restore higher chunk size (10MB -> 25MB) (#1774)
It was previously reduced to 10MB (d1447083
) with the assumption that the slow disk write was causing the "lock" issue.
Now that the backend has implemented a new locking mechanism, restore to a larger chunk to reduce the number of PATCH calls.
```
10MB -> 2s/call
25MB -> 6s/call (similar to what I see with Google Drive)
100MB -> 25s/call
```
This commit is contained in:
parent
c2b911d73a
commit
70ea3f0812
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import { LBRY_WEB_PUBLISH_API_V2 } from 'config';
|
|||
|
||||
const RESUMABLE_ENDPOINT = LBRY_WEB_PUBLISH_API_V2;
|
||||
const RESUMABLE_ENDPOINT_METHOD = 'publish';
|
||||
const UPLOAD_CHUNK_SIZE_BYTE = 10 * 1024 * 1024;
|
||||
const UPLOAD_CHUNK_SIZE_BYTE = 25 * 1024 * 1024;
|
||||
|
||||
const STATUS_CONFLICT = 409;
|
||||
const STATUS_LOCKED = 423;
|
||||
|
|
Loading…
Reference in a new issue