av-merge: Retry more than once for timeouts
This commit is contained in:
parent
f010452abf
commit
38d8d5d4c5
@ -569,7 +569,8 @@ function fetchRange(url, start, end, debugInfo) {
|
|||||||
onFailure(e, 'Network error');
|
onFailure(e, 'Network error');
|
||||||
};
|
};
|
||||||
xhr.ontimeout = function (event){
|
xhr.ontimeout = function (event){
|
||||||
onFailure(null, 'Timeout (15s)', maxRetries=1);
|
xhr.timeout += 5000;
|
||||||
|
onFailure(null, 'Timeout (15s)', maxRetries=5);
|
||||||
};
|
};
|
||||||
xhr.send();
|
xhr.send();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user