#16744: pkgman download stall
-------------------------------+----------------------------
Reporter: kallisti5 | Owner: stippi
Type: bug | Status: assigned
Priority: blocker | Milestone: R1/beta3
Component: Kits/Package Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Platform: All |
-------------------------------+----------------------------
Comment (by pulkomandy):
So, I checked what happens. I think there is still a problem.
Here is what I did:
{{{pkgman install libreoffice_x86}}}
waited for it to download some packages. Pressed control+C when flite_x86
was at 4MB downlaoded (out of 14MB).
{{{pkgman install libreoffice_x86}}}
download of flite resumes at 4MB and continues. I pressed control+C again
at about 8MB.
{{{pkgman install libreoffice_x86}}}
The download resumes from the 4MB mark instead of the expected 8MB mark.
Repeated this a few times.
It appears the download is always resumed from the oldest partially
downloaded file (the one in transaction-1) and the next partially
downloaded ones in transaction-{2,3,4} are ignored.
So, the HTTP range request code is working fine. But, we are not resuming
the download from the optimal place.
The problem is in code I added in
BPackageManager::_PreparePackageChanges(). It just gets the first file it
can find in any transaction directory. It should look harder and find the
largest one instead.
--
Ticket URL: <https://dev.haiku-os.org/ticket/16744#comment:15>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.