pycurl reduces smart download speed significantly
Bug #244466 reported by
Rehan Khan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
Fix Released
|
High
|
Unassigned |
Bug Description
Imported: http://
Reason for Import: Review
further details: https:/
msg1128 (view) Author: tobig Date: 2007-03-30.05:13:12
We recently changed to install pycurl by default to make sure people
behind proxies can use smart without hazzle. This caused smart to drop
it's download speed significantly.
Did anyone experience this and knows a proper solution? And it really
is pycurl as soon as it is uninstalled the download speed
increases straight away. Sorry for this poor reporting. Feel free to
push me into any direction to get this sorted.
kind regards
Changed in smart: | |
milestone: | none → 1.4 |
Changed in smart: | |
milestone: | 1.4 → 1.3.1 |
assignee: | Gustavo Niemeyer (niemeyer) → nobody |
Changed in smart: | |
status: | Confirmed → Fix Committed |
Changed in smart: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The remainder of the report:
msg1166 (view) Author: niemeyer Date: 2007-07-05.01:26:21
Oh my.. please don't paste that in a public forum bogdano. :-) That's
a programming atrocity I've made while looking to implement support
for protocols quickly.
I hope to fix the way that the fetcher behaves internally in the
near future.
msg1157 (view) Author: bogdano Date: 2007-06-25.00:57:21
On Mon, Jun 25, 2007 at 12:26:43AM +0000, Tobias Gerschner at Labix Tracker wrote:
>
> Tobias Gerschner <email address hidden> added the comment:
>
> This has been reported from several machines and is not related to proxy use at
> all. We added pycurl by default so that people don't have issues using proxies.
> Anyone having pycurl installed experienced noticeably slower download speed. I
> won't exclude packaging error on our side , but I have found none so far and
> think it was time to get this discussion upstream started.
>
Noticed the same behavior here some time ago. I didn't investigated how to
properly fix it yet, but the following patch increased the transfer rate:
--- smart/fetcher.py (revision 876)
res, num = multi.perform()
self. _lock.release( )
self. _running = False
+++ smart/fetcher.py (working copy)
@@ -1668,7 +1668,7 @@
while res == mp:
- time.sleep(0.2)
+ #time.sleep(0.2)
Seems to not be the right way to fix it. Needs further investigation.
msg1156 (view) Author: tobig Date: 2007-06-25.00:26:42
Sorry for the incomplete report. The issue is quite easy to reproduce here:
1) Package download from a near mirror happens at 500 kbyte/s using smart
without having pycurl installed.
2) uninstall the package and install pycurl
3) install the same package again and the download speed is always very low ( 60
kbyte/s ).
This has been reported from several machines and is not related to proxy use at
all. We added pycurl by default so that people don't have issues using proxies.
Anyone having pycurl installed experienced noticeably slower download speed. I
won't exclude packaging error on our side , but I have found none so far and
think it was time to get this discussion upstream started.
msg1151 (view) Author: peter-endian Date: 2007-06-21.13:27:05
i noticed exactly the contrary. pycurl is way faster than urllib, which of
course is not very surprising
Do you face this only with the proxy within the path? Then it's quite normal. A
proxy always slows down the connection.