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: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Jun 2008 00:20:33 +0200 (CEST)

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
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