From 1cdacb9d80c478d674b3b99506ef037ede3dd74c Mon Sep 17 00:00:00 2001 From: Mihaela Dumitru Date: Thu, 22 Feb 2024 13:07:43 +0200 Subject: [PATCH] increase pingTimeout and bufferSize (#16) --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7cdc296..26f8f4a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,8 +39,8 @@ const io = socketIO(server, { res.writeHead(200, headers); res.end(); }, - maxHttpBufferSize: 10e6, - pingTimeout: 10000 + maxHttpBufferSize: 20e6, + pingTimeout: 60000 }); // listens on host:9090/metrics