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 09:41:25 +0200 (CEST)

On Thu, 19 Jun 2008, ??? wrote:

>> bool dead = !pipelen && SocketIsDead(check->sock[FIRSTSOCKET]);
>
> ~~~~~~ pipelen == 0 ??? it pipelen always == 0 here
>
> i found that the above code may be wrong...because the code already check
> the pipeLen==0. just as below.

Right, it struck me too and I had to think for a while to properly realize why
it would be in use but not in a pipe but I now think there are a few
legitimate reasons for it so thus your check should be fine.

-- 
  / daniel.haxx.se
Received on 2008-06-19