cURL / Mailing Lists / curl-library / Single Mail

curl-library

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