mirror of
https://github.com/thelounge/thelounge
synced 2024-11-21 19:43:07 +00:00
Clarify description of prefetchMaxSearchSize. (#4338)
This is a comments only change that fixes two problems: 1. The previous comment described it as limiting request size, but it instead limits the response size. 2. Previously it was unclear _why_ this size was significant. It wasn't obvious to me that the entire response would be stored in memory.
This commit is contained in:
parent
80acbc7c06
commit
21c6abdd1d
1 changed files with 3 additions and 2 deletions
|
@ -152,8 +152,9 @@ module.exports = {
|
|||
|
||||
// ### prefetchMaxSearchSize
|
||||
//
|
||||
// This value sets the maximum request size made to find the Open Graph tags
|
||||
// for link previews. For some sites like YouTube this can easily exceed 300
|
||||
// This value sets the maximum response size allowed when finding the Open
|
||||
// Graph tags for link previews. The entire response is temporarily stored
|
||||
// in memory and for some sites like YouTube this can easily exceed 300
|
||||
// kilobytes.
|
||||
//
|
||||
// This value is set to `50` kilobytes by default.
|
||||
|
|
Loading…
Reference in a new issue