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.
This commit is contained in:
parent
a42325d801
commit
3202b79990
@ -159,6 +159,18 @@ module.exports = {
|
|||||||
//
|
//
|
||||||
// This value is set to `50` kilobytes by default.
|
// This value is set to `50` kilobytes by default.
|
||||||
prefetchMaxSearchSize: 50,
|
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`
|
// ### `fileUpload`
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user