Invidious is an alternative front-end to YouTube
Bump read timeout
Omar Roth13e7cca1a4b3
diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.crindex 7dd1adf3..4bf2031e 100644--- a/src/invidious/helpers/utils.cr+++ b/src/invidious/helpers/utils.cr@@ -1619,8 +1619,8 @@ struct HTTPPoolrescue exconn = HTTPClient.new(url)conn.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::UNSPEC- conn.read_timeout = 5.seconds- conn.connect_timeout = 5.seconds+ conn.read_timeout = 10.seconds+ conn.connect_timeout = 10.secondsyield connensurepool.checkin(conn)@@ -1631,8 +1631,8 @@ struct HTTPPoolConnectionPool(HTTPClient).new(capacity: capacity, timeout: timeout) doclient = HTTPClient.new(url)client.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::UNSPEC- client.read_timeout = 5.seconds- client.connect_timeout = 5.seconds+ client.read_timeout = 10.seconds+ client.connect_timeout = 10.secondsclientendend@@ -1661,8 +1661,8 @@ enddef make_client(url : URI, region = nil)client = HTTPClient.new(url)client.family = (url.host == "www.youtube.com") ? CONFIG.force_resolve : Socket::Family::UNSPEC- client.read_timeout = 5.seconds- client.connect_timeout = 5.seconds+ client.read_timeout = 10.seconds+ client.connect_timeout = 10.secondsif regionPROXY_LIST[region]?.try &.sample(40).each do |proxy|