cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: potential bug in multi_runsingle() in multi.c ?

From: 邓民文 <dengminwen_at_gmail.com>
Date: Thu, 19 Jun 2008 09:48:25 +0800

yes, i test my app 10 times, each time with 100000 urls, and no error found.
thanks daniel, you help me a lot

2008/6/19 Daniel Stenberg <daniel_at_haxx.se>:

> On Wed, 18 Jun 2008, ??? wrote:
>
> oh, my mistake. i not read the souce code carefully.
>> so, is below code do right ???
>>
>> in url.c
>>
>
> - bool dead = SocketIsDead(check->sock[FIRSTSOCKET]);
>> + bool dead = (!check->inuse) &&
>> SocketIsDead(check->sock[FIRSTSOCKET]);
>>
>
> Yes, I think either that or:
>
> bool dead = !pipelen && SocketIsDead(check->sock[FIRSTSOCKET]);
>
> Have you tried your application with your fix?
>
> --
>
> / daniel.haxx.se
>

-- 
dengminwen_at_gmail.com
Received on 2008-06-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET