khushpanchal / Ketch

An Android File downloader library based on WorkManager with pause and resume support.
https://medium.com/@khush.panchal123/ketch-android-file-downloader-library-7369f7b93bd1
395 stars 26 forks source link

Timeout for large files. #23

Open Luphaestus opened 3 weeks ago

Luphaestus commented 3 weeks ago

Hi,

I'm having trouble downloading large files (like 700MB+) in my app. No matter which file hosting service I use (Google, Mediafire, GitHub), the downloads keep timing out. The problem happens both in my app and the sample app.

Example Link: Download Link

Is this a problem on my end?

Thanks!

khushpanchal commented 3 weeks ago

Have you tried increasing readTimout.

Currently it is set to 10 seconds by default.

Could try setting it to atleast 30 seconds.

To customize timeout, pass Download config while initialising the library

Luphaestus commented 3 weeks ago

Thank you for you quick reply, Unfortunately, it still doesn't work. Is there a way I can more logs?

khushpanchal commented 3 weeks ago

Does timeout happens in between download or as soon as you start the download?

Also what exact failureReason you are getting?

Luphaestus commented 3 weeks ago

I'm not exactly sure what you mean, but I don't get a single progress update.

And the exact failure reason is "timeout"

khushpanchal commented 3 weeks ago

Let me check and get back.