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:
saltycrys 2020-12-06 05:05:25 +01:00
parent 64c6dfd307
commit 7f41639244

View File

@ -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