From d21113c8886826371ca382e8987ec1b115e2078c Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Wed, 28 Sep 2022 21:36:06 +0200 Subject: [PATCH] perf(ext/http): increase buffer size to 64kb --- ext/http/01_http.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/http/01_http.js b/ext/http/01_http.js index 63023a29649e72..74e7bb27119b48 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -384,9 +384,7 @@ type: "bytes", async pull(controller) { try { - // This is the largest possible size for a single packet on a TLS - // stream. - const chunk = new Uint8Array(16 * 1024 + 256); + const chunk = new Uint8Array(64 * 1024); const read = await readRequest(streamRid, chunk); if (read > 0) { // We read some data. Enqueue it onto the stream.