From 991990a3d40c0961542509801495b6012868e235 Mon Sep 17 00:00:00 2001 From: Mihaela Dumitru Date: Wed, 15 Feb 2023 15:17:33 +0200 Subject: [PATCH] decrease buffer size --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 76f28a9..a48e3ea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,7 +37,7 @@ const io = socketIO(server, { res.writeHead(200, headers); res.end(); }, - maxHttpBufferSize: 5e6, + maxHttpBufferSize: 2e6, pingTimeout: 10000 });