mirror of https://github.com/ekimekim/wubloader
downloader: Stop retrying in SegmentGetter after a long timeout
In resource contention scenarios, all calls can start failing due to not being able to read the response in a timely manner. This means SegmentGetters never stop retrying, leading to further contention and a feedback loop. We attempt to put at least some cap on this scenario by giving up if an amount of time has elapsed to the point that we know our URL couldn't be valid anymore. Since we don't actually know how long segment URLs are valid, we are very conservative about this time, for now setting it to 20min.pull/38/head
parent
81aee0ee1e
commit
c0f94059aa
Loading…
Reference in New Issue