cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: "Server response timeout" after connected to FTP server

From: Marcin Adamski <mass85_at_tlen.pl>
Date: Tue, 08 Nov 2011 21:42:20 +0100

> Are you sure you're setting the timeouts correctly? i.e. using
> milliseconds and not seconds if appropriate, and passing in long values,
> not ints? What does your main curl_multi loop look like?

I'm sure all above is correct. In main loop I check fd_set and timeout by libcurl's interface and I always set timeout to maximum 500ms. I don't have any other fd set in select, because it is a separate, CURL dedicated thread that performs transfers.

What I suspect is that CURL makes some incorrect magic with these timeouts, because it is all about setting large enough value to make it work. There is not much difference between 15s and 90s, right? It is not 1000 times difference what would solve the problem if I used milisecond instead of second resolution.

Marcin Adamski

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-08