From 1ea3f1908e5a132f7a10b2185ef1e9d98858216f Mon Sep 17 00:00:00 2001 From: tsctx <91457664+tsctx@users.noreply.github.com> Date: Sat, 6 Jul 2024 17:03:40 +0900 Subject: [PATCH] websocket: reduce memory usage --- 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