joystream icon indicating copy to clipboard operation
joystream copied to clipboard

Download timeouts - use deadline in addition to response timeout

Open mnaamani opened this issue 1 year ago • 0 comments

We use superagent package to fetch assets from remote nodes. Currently we pass a single timeout value when we consider the download failed, or want to stop processing a task. This timeout is the "deadline" timeout, but we should also use the "response" timeout to more quickly determine a download is going to be slow and move to download from the next source.

See: https://github.com/ladjs/superagent/blob/master/docs/index.md#timeouts

mnaamani avatar Jan 19 '24 08:01 mnaamani