Created attachment 116388 [details]
PackageKit doesn't seem to respect private mirrors. When I access Fedora repository metalink at this address:
I see this:
<url protocol="http" type="http" location="CZ" preference="100" mm0:private="True">http://download.eng.brq.redhat.com/pub/fedora/linux/development/22/x86_64/os/repodata/repomd.xml</url>
yum and dnf respect this and use solely this mirror to download packages, therefore everything uses our internal 1Gbit network.
However, packagekit (used through gnome-software) does not. When looking into iptraf-ng, it seems that it is contacting a different mirror for every package download, probably picking in random or cycling through the list. The download speeds jump from 100kB/s to 100MB/s (when it randomly downloads a single package from our internal mirror).
The overall experience is that downloading updates with packagekit is extremely slow (I use pkmon to monitor progress). And I have a feeling that it is not just related to private mirrors. Even when I'm at home, packagekit feels an order of magnitude slower than yum/dnf. My theory is that by jumping the mirrors after each package download, it needs to open a new connection every time, so it does not allow for download pipelining, as you can do when downloading from a single host. (But that would be a different issue, I'm mentioning it just in case it was important.)
Please make PackageKit respect private mirrors. And ideally make the download logic synchronized with dnf (could it be somehow shared between the projects?). Thank you.
This has been fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1336404