From 3202b79990888cf88463067d3f97888cf2315abd Mon Sep 17 00:00:00 2001 From: Emily Strickland Date: Fri, 8 Apr 2022 15:42:31 -0700 Subject: [PATCH] Set `prefetchTimeout` setting default to 5000 ms This change adds a `prefetchTimeout` setting to the default configuration and sets it to 5000 milliseconds. Its description indicates the advantages and disadvantages of changing its default value. --- defaults/config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/defaults/config.js b/defaults/config.js index 89212c39..eba57777 100644 --- a/defaults/config.js +++ b/defaults/config.js @@ -159,6 +159,18 @@ module.exports = { // // This value is set to `50` kilobytes by default. prefetchMaxSearchSize: 50, + + // ### `prefetchTimeout` + // + // When `prefetch` is enabled, this value sets the number of milliseconds + // before The Lounge gives up attempting to fetch a link. This can be useful + // if you've increased the `prefetchMaxImageSize`. + // + // Take caution, however, that an inordinately large value may lead to + // performance issues or even a denial of service, since The Lounge will not + // be able to clean up outgoing connections as quickly. Usually the default + // value is appropriate, so only change it if necessary. + prefetchTimeout: 5000, // ### `fileUpload` //