From 64cd7a91ba3bcd633de7802618c3f472b3aa843e Mon Sep 17 00:00:00 2001 From: tsctx <91457664+tsctx@users.noreply.github.com> Date: Sat, 6 Jul 2024 22:54:07 +0900 Subject: [PATCH] websocket: reduce memory usage (#3393) --- lib/web/websocket/frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/websocket/frame.js b/lib/web/websocket/frame.js index fe54646cc7d..aeab947584e 100644 --- a/lib/web/websocket/frame.js +++ b/lib/web/websocket/frame.js @@ -2,7 +2,7 @@ const { maxUnsigned16Bit } = require('./constants') -const BUFFER_SIZE = 16386 +const BUFFER_SIZE = 8 * 1024 /** @type {import('crypto')} */ let crypto