DownloadTaskOptions timeout?

We’re using juce::URL::downloadToFile for our download manager and most of the time it works great. However, sometimes this seems to stall and then drop the connection.

I’m wondering if for large files on slow speed connections if the URL us just timing out. I think it defaults to about 30s? Would it be possible to add this as an option to DownloadTaskOptions so we make it longer for certain downloads?

2 Likes

+1 to the request of adding control over the timeout.

At first glance, this looks fairly straightforward to integrate: the DownloadTaskOptions should have a timeout parameter which is then passed into the WebInputStream created inside of URL::DownloadTask::createFallbackDownloader.