summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorAlexandre Ferrieux <alexandre.ferrieux@orange.com>2022-07-12 23:40:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-11-18 00:17:27 +0100
commit49798cac832ab12c52b642930448e2f6eaedb982 (patch)
treee448da4f301e79162b90ec784d991ca154170405 /lib/setopt.c
parentb473df52bbd887cf98d985b65f5f4adce25c07d5 (diff)
downloadcurl-49798cac832ab12c52b642930448e2f6eaedb982.tar.gz
CURLOPT_QUICK_EXIT: don't wait for DNS thread on exit
Fixes #2975 Closes #9147
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 51335b8cd..d53131a0e 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -3116,6 +3116,9 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
break;
}
#endif
+ case CURLOPT_QUICK_EXIT:
+ data->set.quick_exit = (0 != va_arg(param, long)) ? 1L:0L;
+ break;
default:
/* unknown tag and its companion, just ignore: */
result = CURLE_UNKNOWN_OPTION;