From a64ba41f485f3bde28b58827c8a2ce5bf94f711a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Tue, 17 Jan 2023 17:42:39 +0100 Subject: [PATCH] fix: increase default socket close timeout (#242) Increases default inactivity timeout to 5 minutes. closes #239 --- .gitignore | 2 +- src/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f7c8504a2d..8e2ce85f0b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ node_modules package-lock.json -coverage +.coverage .nyc_output .docs dist diff --git a/src/constants.ts b/src/constants.ts index 8a31a5d1e9..8402e3a703 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -7,4 +7,4 @@ export const CODE_UNIX = 400 export const CLOSE_TIMEOUT = 2000 // Close the socket if there is no activity after this long in ms -export const SOCKET_TIMEOUT = 30000 +export const SOCKET_TIMEOUT = 5 * 60000 // 5 mins