cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp upload fails when time is greater than 10 minutes

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 22 Apr 2008 10:19:12 -0700

On Tue, Apr 22, 2008 at 11:57:59AM -0500, Eric wrote:
> When doing an ftp upload of 50 meg files that takes more than 10 minutes, the library reports a failure. The whole file is transferred, but errors out immediately after.
>
> It seems like it does not wait for the 226 response. Immediately after the debug output of "Remembering we are in dir", it sends "FTP response reading failed" with no time delay between the two messages.

This is the kind of thing you would expect when a NAT closes the FTP channel
due to a timeout while the transfer is going on on the other channel. You
can try the --keepalive-time option with a timeout < 10 minutes to see
if that solves the problem.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-04-22