cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 8 Nov 2011 12:21:38 -0800

On Tue, Nov 08, 2011 at 08:35:56PM +0100, Marcin Adamski wrote:
> The problem in this particular case is that in tcpdump output I see that my application/libcurl initialises TCP connection and then immediately finishes it. There is no FTP request/response sent or received. I can provide tcpdump output if needed.

Ah, I see that now in the timestamps.

> However I don't have any problems when I use other FTP clients, when I use CURL from command line (without any timeouts set) or when I perform transfers from my application but with FTP_RESPONSE_TIMEOUT set to 90s instead of 15s. Anyway 15s is much more than these miliseconds within I get that timeout.

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?

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