mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update payload size to 11 MB to accomodate 10 MB chunk size
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ $http = new Server(
|
||||
mode: SWOOLE_PROCESS,
|
||||
);
|
||||
|
||||
$payloadSize = 10 * (1024 * 1024); // 10MB
|
||||
$payloadSize = 11 * (1024 * 1024); // 11MB
|
||||
$workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6));
|
||||
|
||||
$http
|
||||
|
||||
@@ -125,11 +125,11 @@ trait StorageBase
|
||||
|
||||
/**
|
||||
* Failure
|
||||
* Test for Chunk above 5MB
|
||||
* Test for Chunk above 10MB
|
||||
*/
|
||||
$source = __DIR__ . "/../../../resources/disk-a/large-file.mp4";
|
||||
$totalSize = \filesize($source);
|
||||
$chunkSize = 6 * 1024 * 1024;
|
||||
$chunkSize = 11 * 1024 * 1024;
|
||||
$handle = @fopen($source, "rb");
|
||||
$fileId = 'unique()';
|
||||
$mimeType = mime_content_type($source);
|
||||
|
||||
Reference in New Issue
Block a user