cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: reply to all: CURLE_OPERATION_TIMEDOUT when FTP upload with large files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 3 Jun 2009 14:40:24 +0200 (CEST)

On Tue, 2 Jun 2009, A-ZYSTEMS wrote:

> Sorry I am a beginner with libcurl

And you're top-posting. Please don't:
http://curl.haxx.se/mail/etiquette.html#top-post

> I must only insert curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION,
> SO_KEEPALIVE)?

No. Please read the docs for the CURLOPT_SOCKOPTFUNCTION option.

> My Programm are going to use on a lot of different pc with LAN, WLAN etc. I
> have try 3 different FTP-Server by different Webhoster. By all I have the
> same problem, when I upload a big file (more as 40 MB) curl_easy_perform
> return a CURLE_OPERATION_TIMEDOUT after the upload.

You probably go through the same NAT/firewall every time so naturally you get
the same timeout every time.

> 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.

I've said this several times already but I'll say it again: you won't fix this
problem by changing timeouts in libcurl. libcurl is not your problem.

-- 
  / daniel.haxx.se
Received on 2009-06-03