cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP file downloaded but request fails

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Jan 2006 10:45:43 +0100 (CET)

On Wed, 4 Jan 2006, jon.turner_at_thomson.com wrote:

> I am trying to download from an unknown FTP server over an internal network,
> but each time I use my application to download larger files (~28mb, can take
> up to 15mins) they will get to 100% downloaded but then the connection to
> the server will timeout and curl_easy_perform() will return an error, even
> though it looks as though the whole file has been transferred. The error I
> get is 28: CURLE_OPERATION_TIMEOUTED. I am setting the FTPPORT option as
> PASV mode doesn't work. CURL.exe behaves in the same way - gets to 100% then
> times out and retries unsuccessfully. Smaller files complete correctly.

Could this perhaps be because "something" in between you and server is
dropping the control connection? I'm thinking of firewalls/NATs etc that keep
connections around only for a limited time when there's no traffic on them and
libcurl has no traffic on that connection during the entire data transfer...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-04