mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-07 21:28:30 +00:00
Increase YouTube request timeout
From 0.1 seconds to 2 seconds. The default timeout is five seconds (`QUICPool` in `src/invidious/helpers/utils.cr`) but it seems to have been chose randomly. If reads continue to time out the timeout can be increased again.
This commit is contained in:
parent
64c6dfd307
commit
7f41639244
@ -104,7 +104,7 @@ LOCALES = {
|
||||
"zh-TW" => load_locale("zh-TW"),
|
||||
}
|
||||
|
||||
YT_POOL = QUICPool.new(YT_URL, capacity: CONFIG.pool_size, timeout: 0.1)
|
||||
YT_POOL = QUICPool.new(YT_URL, capacity: CONFIG.pool_size, timeout: 2)
|
||||
|
||||
config = CONFIG
|
||||
logger = Invidious::LogHandler.new
|
||||
|
Loading…
Reference in New Issue
Block a user