curl-library
reply to all: CURLE_OPERATION_TIMEDOUT when FTP upload with large files
Date: Sun, 31 May 2009 22:12:02 +0200
> When I upload a file less as 40 MB, i have no problems. When I load a
> bigger file (for example 56 MB) "curl_easy_perform" return a
> CURLE_OPERATION_TIMEDOUT. But the uploaded file is complete save on
> the ftp-Server.
>It sounds like the typical case of the control connection having timed-out
(through a firewall or NAT) by the time the data
> connection is complete. The only sensible thing you can do to fix that
problem is to extend the timeouts.
When I extend the timeouts with CURLOPT_TIMEOUT
Or CURLOPT_FTP_RESPONSE_TIMEOUT to 3 Hours for example, curl_easy_perform
hang for 3 ours.
My Program is a photo book application. After creating a photo book, the
photo book should uploaded to a backend Server.
A photo book can have 1 MB to 300 MB and more. Files with to 20 minutes
uploadtime, i have no problem. But a file with a upload time over 30
minutes, "curl_easy_perform" need over one minutes to finish the upload
porccess with CURLE_OPERATION_TIMEDOUT.
Alexander
Received on 2009-05-31