mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update chunk size to 7 MB
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ $http = new Server(
|
||||
mode: SWOOLE_PROCESS,
|
||||
);
|
||||
|
||||
$payloadSize = 11 * (1024 * 1024); // 11MB
|
||||
$payloadSize = 8 * (1024 * 1024); // 8MB
|
||||
$workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6));
|
||||
|
||||
$http
|
||||
|
||||
+1
-1
@@ -200,7 +200,7 @@ const APP_AUTH_TYPE_JWT = 'JWT';
|
||||
const APP_AUTH_TYPE_KEY = 'Key';
|
||||
const APP_AUTH_TYPE_ADMIN = 'Admin';
|
||||
// Response related
|
||||
const MAX_OUTPUT_CHUNK_SIZE = 10 * 1024 * 1024; // 10MB
|
||||
const MAX_OUTPUT_CHUNK_SIZE = 7 * 1024 * 1024; // 7MB
|
||||
// Function headers
|
||||
const FUNCTION_ALLOWLIST_HEADERS_REQUEST = ['content-type', 'agent', 'content-length', 'host'];
|
||||
const FUNCTION_ALLOWLIST_HEADERS_RESPONSE = ['content-type', 'content-length'];
|
||||
|
||||
@@ -125,11 +125,11 @@ trait StorageBase
|
||||
|
||||
/**
|
||||
* Failure
|
||||
* Test for Chunk above 10MB
|
||||
* Test for Chunk above 7MB
|
||||
*/
|
||||
$source = __DIR__ . "/../../../resources/disk-a/large-file.mp4";
|
||||
$totalSize = \filesize($source);
|
||||
$chunkSize = 11 * 1024 * 1024;
|
||||
$chunkSize = 8 * 1024 * 1024;
|
||||
$handle = @fopen($source, "rb");
|
||||
$fileId = 'unique()';
|
||||
$mimeType = mime_content_type($source);
|
||||
|
||||
Reference in New Issue
Block a user