curl-library
"Server response timeout" after connected to FTP server
Date: Tue, 08 Nov 2011 11:08:11 +0100
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"
[info] 111108 10:33:53 TransferManager.cpp(421) CURL: Average upload speed: 0 B/s
[info] 111108 10:33:53 TransferManager.cpp(429) CURL: transfer time: 1.75292 s
[info] 111108 10:33:53 TransferManager.cpp(505) Restarting transfer
[info] 111108 10:33:53 TransferManager.cpp(922) Starting transfer
[debug] 111108 10:33:53 TransferManager.cpp(788) Setting timeout for task with ftp://10.4.0.1/upload/file1, timeout = 111111108, connect timeout = 60, ftpResponseTimeout = 15
[debug] 111108 10:33:53 TransferManager.cpp(725) CURL DEBUG: About to connect() to 10.4.0.1 port 21 (#0)
[debug] 111108 10:33:53 TransferManager.cpp(725) CURL DEBUG: Trying 10.4.0.1...
[debug] 111108 10:34:03 TransferManager.cpp(725) CURL DEBUG: Connected to 10.4.0.1 (10.4.0.1) port 21 (#0)
[debug] 111108 10:34:03 TransferManager.cpp(725) CURL DEBUG: server response timeout
[debug] 111108 10:34:03 TransferManager.cpp(725) CURL DEBUG: Closing connection #0
[info] 111108 10:34:03 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"
[info] 111108 10:34:03 TransferManager.cpp(421) CURL: Average upload speed: 0 B/s
[info] 111108 10:34:03 TransferManager.cpp(429) CURL: transfer time: 9.96441 s
Regards
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