From 4c9b91ab573d497df07d5749f2a2ae4c7285730e Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 9 Nov 2020 20:12:59 +0100 Subject: [PATCH] Lower default heartbeat interval Use 45 seconds as the default heartbeat interval instead of 60. Using 60 causes connections to drop when proxied through Nginx as the default timeout there is also 60 seconds. --- docs/configuration.md | 2 +- packages/lib/config/definitions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 5e7f1ac1..0a5f299c 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -84,7 +84,7 @@ heartbeat interval it will be considered stale and closed. A lower value means less time between connections going stale and them being closed. -Defaults to 60 +Defaults to 45 ### master.connector_shutdown_timeout diff --git a/packages/lib/config/definitions.js b/packages/lib/config/definitions.js index b1ed056b..cc273315 100644 --- a/packages/lib/config/definitions.js +++ b/packages/lib/config/definitions.js @@ -78,7 +78,7 @@ MasterGroup.define({ title: "Heartbeat Interval", description: "Interval heartbeats are sent out on WebSocket connections", type: "number", - initial_value: 60, + initial_value: 45, }); MasterGroup.define({ name: "connector_shutdown_timeout",