curl-library
Re: "Server response timeout" after connected to FTP server
Date: Tue, 8 Nov 2011 10:41:31 -0800
On Tue, Nov 08, 2011 at 11:08:11AM +0100, Marcin Adamski wrote:
> I'm having a problem with FTP upload. Just after establishing connection to server, I get "server response timeout". It is weird, because I set large timeouts (timeout = 111111110s, connect timeout = 60s, ftpResponseTimeout = 15s).
> Information about timeout comes from Curl_pp_multi_statemach(struct pingpong *pp).
>
> Did I set something in a wrong way? I always check result codes of library functions and I am sure that curl_easy_setopt did not return error.
>
> [info] 111108 10:33:51 TransferManager.cpp(922) Starting transfer
> [debug] 111108 10:33:51 TransferManager.cpp(788) Setting timeout for task with ftp://10.4.0.1/upload/file1, timeout = 111111110, connect timeout = 60, ftpResponseTimeout = 15
> [debug] 111108 10:33:51 TransferManager.cpp(725) CURL DEBUG: About to connect() to 10.4.0.1 port 21 (#0)
> [debug] 111108 10:33:51 TransferManager.cpp(725) CURL DEBUG: Trying 10.4.0.1...
> [debug] 111108 10:33:53 TransferManager.cpp(725) CURL DEBUG: Connected to 10.4.0.1 (10.4.0.1) port 21 (#0)
> [debug] 111108 10:33:53 TransferManager.cpp(725) CURL DEBUG: server response timeout
> [debug] 111108 10:33:53 TransferManager.cpp(725) CURL DEBUG: Closing connection #0
> [info] 111108 10:33:53 TransferManager.cpp(416) CURL: Transfer has finished with result code: 28("Timeout was reached"), errorBuffer: "server response timeout", ID: 1, url: "ftp://10.4.0.1/upload/file1", local path: "/tmp/a.cfg"
I'm not sure how much these logs show, but I would expect to see the FTP
server respond with at least a 220 banner on connection, and this log
doesn't show that the FTP server is returning anything. libcurl is right
to time out in that case. Can you connect to this server with another
ftp client? Does Wireshark show the server actually responding with
anything?
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-08