-
Notifications
You must be signed in to change notification settings - Fork 2.2k
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several issues with chunked resources and each inputstream buffer very tiny. #167
Comments
What version do you using? Is it 0.3.1? |
Thanks for your issue. OK, I just tried URLs you provided in Demo Project 1. Callback is called several times over the limitYes, The transfer encoding of All URLs you provided is For 2 other amazing issues, I will check and finger out problems, It must only occur in the |
chunked
resources
chunked
resources
First of all, you can 'fix' bellow tow issues through
Why?Because FileDownloader read a buffer(Size 4096bytes) from the input stream for URLs you provided, FileDownloader provides the size of the buffer is 4096bytes, but the input stream provides is very tiny most of the time(even less than 15bytes) in your case, so it is cause the count of the callback Message is very very huge(even hundreds) and with the AvoidDropFrame Function, all action/call-back is waiting in queue, So with the long waiting, you will feel everything goes wrong. Solution
|
@Jacksgong I was using 0.3.1 indeed and testing with the Demo project. Thanks a lot for the amazingly fast response and explanation! Have a great week! |
Enhancement since v0.3.2 |
When attempting to download a file which does not report it's filesize, the following happens:
-Callback is called several times over the limit
-Pausing the task works randomly (sometimes it pauses after some time, sometimes it doesn't stop at all)
-Sometimes the download won't report as completed even after it downloaded (progress callback keeps getting called with totalBytes = soFarBytes)
Sample urls:
http://feedproxy.google.com/~r/TeaintheTreetops/podcast/~5/8KgLZ5CRro8/TeaintheTreetops-Ep42-Passenger.mp3
http://jazzpianoschool.com/podlove/file/437/s/feed/c/jpspodcast2/043.mp3
Thanks for making this library!
The text was updated successfully, but these errors were encountered: