summaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2022-11-21 15:40:26 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-22 08:20:38 +0100
commit4a8b4a1b6635f1dc811b65a9355b89f0277da1f2 (patch)
tree4f1a03fd881b915e6cae0f3a08ccc6303e5cc7ca /lib/connect.c
parentb7413a66bd01cd5b6f7acbfffa5e39ec9db99d42 (diff)
downloadcurl-4a8b4a1b6635f1dc811b65a9355b89f0277da1f2.tar.gz
cfiler: filter types have flags indicating what they do
- Adding Curl_conn_is_ip_connected() to check if network connectivity has been reached - having ftp wait for network connectivity before proceeding with transfers. Fixes test failures 1631 and 1632 with hyper. Closes #9952
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index fbb8e86ee..6fc711533 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -1822,6 +1822,7 @@ static void socket_cf_destroy(struct Curl_cfilter *cf, struct Curl_easy *data)
static const struct Curl_cftype cft_socket = {
"SOCKET",
+ CF_TYPE_IP_CONNECT,
socket_cf_destroy,
Curl_cf_def_attach_data,
Curl_cf_def_detach_data,
@@ -1892,6 +1893,7 @@ static CURLcode socket_accept_cf_setup(struct Curl_cfilter *cf,
static const struct Curl_cftype cft_socket_accept = {
"SOCKET-ACCEPT",
+ CF_TYPE_IP_CONNECT,
socket_cf_destroy,
Curl_cf_def_attach_data,
Curl_cf_def_detach_data,