Update payload size to 11 MB to accomodate 10 MB chunk size

This commit is contained in:
Khushboo Verma
2024-05-02 14:30:18 +05:30
parent 885e7019f8
commit 89daa5e479
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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);