Two weeks ago I posted about making aria2c the default transfer mechanism for our software management stack.
With libzypp 6.1.0 in Factory, this is already the case. With the first community round of testing, we got quite a lot of bug reports and feedback. Some stuff did not work because the implementation was wrong, while others just showed us that aria2 worked differently as we thought.
The upcoming 6.2.1 addresses the following issues:
implemented progress indicators correctly (bnc#473846). You should see progress reporting now in a consistent basis.
fixed broken pipe when looking for aria2c which caused a fallback to curl. (bnc#480930)
implement saving and reading mirror stats data in /var/cache/zypp/aria2.stats. This means libzypp now learns which mirrors are faster and more reliable for you and remembers it. Every usage adds more information to the “learning”.
How to test?
Peter added an interesting “test feature”. If a request happens with a header X-Broken-Mirrors then the openSUSE redirector will send you broken mirrors. So edit your root’s aria2.conf:
And observe zypper.log. Even if errors are reported, libzypp should try other mirrors and get the file successfully.
You can go more extreme, and use “X-Broken-Mirrors: only”, which will give you only bad servers. Even in this case you will see libzypp try hard to get the file before giving up. How hard to try is configurable, see last post for more information.
Big thanks to Peter Poeml and Tatsuhiro Tsujikawa for all the feedback and support, and of course
And with this, feature 302923 is done ;-) and the rest is tracked as bugs.