From 38d8d5d4c5e1f7b83308ad079674dd1157b57be1 Mon Sep 17 00:00:00 2001 From: Astound Date: Sun, 10 Mar 2024 02:08:23 +0800 Subject: av-merge: Retry more than once for timeouts --- youtube/static/js/av-merge.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'youtube/static/js/av-merge.js') diff --git a/youtube/static/js/av-merge.js b/youtube/static/js/av-merge.js index 3226244..e00f440 100644 --- a/youtube/static/js/av-merge.js +++ b/youtube/static/js/av-merge.js @@ -569,7 +569,8 @@ function fetchRange(url, start, end, debugInfo) { onFailure(e, 'Network error'); }; xhr.ontimeout = function (event){ - onFailure(null, 'Timeout (15s)', maxRetries=1); + xhr.timeout += 5000; + onFailure(null, 'Timeout (15s)', maxRetries=5); }; xhr.send(); }); -- cgit v1.2.3