FTP: perform active connections non-blocking
authorGokhan Sengun <gokhansengun@gmail.com>
Mon, 19 Dec 2011 13:35:20 +0000 (14:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Dec 2011 19:30:02 +0000 (20:30 +0100)
commitc834213ad52c52431e9ca597862dc81839cabe84
tree678dfd82d3129b8aef8a0222defc55244003203b
parent5527417afae062d7a2b12ee80730a0ab22b86eab
FTP: perform active connections non-blocking

1- Two new error codes are introduced.

CURLE_FTP_ACCEPT_FAILED to be set whenever ACCEPTing fails because of
FTP server connected.

CURLE_FTP_ACCEPT_TIMEOUT to be set whenever ACCEPTing timeouts.

Neither of these errors are considered fatal and control connection
remains OK because it could just be a firewall blocking server to
connect to the client.

2- One new setopt option was introduced.

CURLOPT_ACCEPTTIMEOUT_MS

It sets the maximum amount of time FTP client is going to wait for a
server to connect. Internal default accept timeout is 60 seconds.
20 files changed:
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/connect.c
lib/connect.h
lib/ftp.c
lib/ftp.h
lib/multi.c
lib/progress.c
lib/progress.h
lib/strerror.c
lib/url.c
lib/urldata.h
tests/data/DISABLED
tests/data/test1206
tests/data/test1207
tests/data/test1208
tests/data/test591
tests/data/test592
tests/data/test593
tests/libtest/lib591.c