curl-library
Re: "Server response timeout" after connected to FTP server
Date: Mon, 14 Nov 2011 16:55:57 +0100
> Posting a short program to this list that shows
> the problem on a public FTP server would go a long way to finding the source
> of the issue.
I'm attaching simple program that reproduces this issue. This is 100% reproducable on Linux working on ARM platform (built with uclibc). I could not repeat it on Intel.
Here is output of this program (TCP dump for this test case is attached):
# ./arm_server_rsp /tmp/file4upload ftp://ftp1.freebsd.org/pub/FreeBSD/foo
File: /tmp/file4upload will be uploaded to ftp://ftp1.freebsd.org/pub/FreeBSD/foo
Setting timeouts, operation timeout = 1000000000, connect timeout = 60, ftpResponseTimeout = 15
maximum long int is: 2147483647
CURL DEBUG: About to connect() to ftp1.freebsd.org port 21 (#0)
CURL DEBUG: Trying 128.205.32.24...
CURL DEBUG: connected
CURL DEBUG: server response timeout
CURL DEBUG: Closing connection #0
Easy performed returned: 28, Timeout was reached, error buffer: "server response timeout"
====
I used here some random timeout which is big but still smaller than std::numeric_limits<long>::max(). I saw this problem occuring in my application (not this simple program) also for 600s, but I can not proove it.
Is my code correct?
Regards
Marcin Adamski
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/x-c++src attachment: server_rsp_tout.cpp
- unknown/unknown attachment: dump