[Yum-devel] [UG] [PATCH] replace curl.reset() so urlgrabber works with pycurl-7.15

Zhigang Wang zhigang.x.wang at oracle.com
Tue Dec 21 23:49:49 UTC 2010


On 12/21/2010 10:05 PM, seth vidal wrote:
> On Tue, 2010-12-21 at 10:04 +0800, Zhigang Wang wrote:
>> On 12/20/2010 11:18 PM, seth vidal wrote:
>>> On Sun, 2010-12-19 at 12:06 +0800, Zhigang Wang wrote:
>>>> In case someone has the same usecase as me: want to use urlgrabber in RHEL5 and
>>>> variant, this patch make it working for pycurl-7.15.
>>>>
>>>> Can anyone confirm it's the right way doing this?
>>>>
>>>
>>> by making a new object each time you will:
>>>
>>> 1. not be able to use urlgrabber for any multithreaded application
>>> 2. not be reuising any connections for keep alives, etc - forming a new
>>> tcp connection each time.
>>>
>>
>> Thanks Seth for this valuable info. Fortunately, yum is single threaded.
>>
> 
> yes - but urlgrabber is used by some other things.

Indeed. Just like me: I use it in my own code (single threaded) and the only
other tool use it is yum.

I don't ask for inclusion of the this patch.

Thanks,

Zhigang



More information about the Yum-devel mailing list