Mailinglist Archive: opensuse (389 mails)

< Previous Next >
Re: [opensuse] Zypper and restart?
You want to look here:

https://github.com/openSUSE/libzypp/blob/master/zypp/media/MediaMultiCurl.cc

there its using the curl_multi APIs .


On 3/15/19 8:53 AM, Andrei Borzenkov wrote:
On Fri, Mar 15, 2019 at 8:56 AM Benjamin Zeller <bzeller@xxxxxxx> wrote:
I added your suggestion to the zypper media backend enhancement bug
here: https://bugzilla.opensuse.org/show_bug.cgi?id=1125470

However in its current codebase zypper does not handle download
restarts. Not sure if and how easy it is
to enable this, since zypper uses already multiple downloads of the same
file from different mirrors and I don't
know if that mixes well with restarts.

Could you point to code? As far as I can tell, libzypp MediaCurl.cc is
using cURL curl_easy_* API which is single threaded.

It could be challenging to resume download though as file is stored
under temporary random name until download is complete, so finding
incomplete file (and verifying that it was from previous aborted
attempt) is not entirely straightforward.

--
Benjamin Zeller <bzeller@xxxxxxx>
Systems Programmer
SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nürnberg
Tel: +49-911-74053-0; Fax: +49-911-7417755; https://www.suse.com/
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard,
Graham Norton, HRB 21284 (AG Nürnberg)


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >