aboutsummaryrefslogtreecommitdiff
path: root/src/auditor-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-12-14 09:44:15 +0100
committerChristian Grothoff <christian@grothoff.org>2018-12-14 09:44:15 +0100
commitc2b6a1065474df88df8d501d7a83b67032bd121d (patch)
tree4da32dbdceaacfffe9fa98891fd3e81755ea4bc5 /src/auditor-lib
parentbdd9ef74e6c90381057ca3f1ece095663e21e59a (diff)
fastoption may not be supported by all curls
Diffstat (limited to 'src/auditor-lib')
-rw-r--r--src/auditor-lib/curl_defaults.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/auditor-lib/curl_defaults.c b/src/auditor-lib/curl_defaults.c
index b71c27ef1..7dadc950e 100644
--- a/src/auditor-lib/curl_defaults.c
+++ b/src/auditor-lib/curl_defaults.c
@@ -44,11 +44,12 @@ TAL_curl_easy_get (const char *url)
curl_easy_setopt (eh,
CURLOPT_ENCODING,
"deflate"));
+#ifdef CURLOPT_TCP_FASTOPEN
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_TCP_FASTOPEN,
1L));
-
+#endif
{
/* Unfortunately libcurl needs chunk to be alive until after
curl_easy_perform. To avoid manual cleanup, we keep