cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP may not timeout

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 8 Feb 2001 08:39:44 +0100 (MET)

On Wed, 7 Feb 2001, SM wrote:

> I tested the fix below and it does not cause a timeout. Curl keeps on
> waiting even if it does not receive any data. Reading the socket does
> not return a -1 as the connection has not been teared down.

[snip]

> I used netcat to reproduce the problem on the server side. I set netcat
> to listen on a port, then got Curl to ftp to that port. Curl waited
> indefinitely as the value of keepon is zero.

It is?

So the read returns 0? Ok, so the check (on line 285) should instead be

      else if(keepon <= 0)
        error = SELECT_ERROR;

Right?

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
Received on 2001-02-08