apt-get does not properly reuse connections with https
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt | ||
Precise |
Fix Released
|
Low
|
Unassigned |
Bug Description
[Impact]
* Apt does not re-use https connections. This results in a significant performance hit.
* Additionally the hosts of mirrors are experiencing unnecessarily high load due to this
[Test Case]
* Run apt-get -update using https connections. It will be noticably slower in comparison to after this change
[Regression Potential]
* This fixes apt, by changing the way it uses curl, such that only problematic error codes cause failure. But this may only happen if the user is using https, http is not affected by this patch.
* Might result in zero length files, or updates not being downloaded over https connectiosn.
* https connections hanging in the event that the above logic does not correctly handle error cases.
[Other Info]
* There's only a slight chance to hit any regressions, as the above is mostly just thinking well outside of the box.
* This is already in Saucy.
* This is not imperative to be pulled into precise, but it would be nice.
* This is really more of an enhancement than a bug fix.
* I have been using this patch for over 5 months now with no negative side affects.
* I have been told that this patch has been deployed in a large (multi-thousand install base) organization with no negative side affects as well.
-------
When using an https: connection, apt-get does not properly reuse connections. Because https setup costs can be quite high, this can cause much slowdown when, for example, many different distributions on the same server need to be checked.
I believe the attached patch addresses the difficulty.
description: | updated |
tags: | added: precise |
description: | updated |
Changed in apt (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: |
added: verification-done removed: verification-needed |
The attachment "enable apt to keep https connections alive for reuse" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]