#12414: [package kit] Package downloads not retried / resumeable
-------------------------+-------------------------------------------------
Reporter: | Owner: leavengood
waddlesplash |
Type: | Status: closed
enhancement |
Priority: critical | Milestone: R1/beta3
Component: | Version: R1/Development
Kits/Package Kit |
Resolution: fixed | Keywords:
Blocked By: | Blocking: 11637, 12691, 13816, 14948, 15312,
Platform: All | 16387
-------------------------+-------------------------------------------------
Comment (by stippi):
When I unplug the cable during a transfer, the download progress in the
Terminal output just stalls. When I re-plug the cable, the download
continues for a little bit, then stops prematurely. I've added debug
output to the complete error handling in FetchFileJob. The BHttpRequest
calls the RequestCompleted() hook with status B_OK and success "true". The
hook then checks the HTTP status from the response, that also indicates
everything went fine. The transaction then fails because the package
checksum does not match the repo information. The situation is made worse
by my recent changes, because due to the BHttpRequest finishing with B_OK,
the download is marked as complete. The user has to manually delete the
incomplete package from the transaction folder in order to have a chance
at re-trying.
I will now add some debug output to the transfer loop in BHttpRequest in
order to dig deeper.
The Package Kit should delete downloads that fail the checksum check.
Maybe I can provide a patch for that as well.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12414#comment:19>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.