diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-12-14 09:41:53 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-12-14 09:42:15 +0100 |
commit | bdd9ef74e6c90381057ca3f1ece095663e21e59a (patch) | |
tree | b4c7b7a698779457abc626e0670c15ae1fb8db26 | |
parent | c1a75b5b98a99e5d1b02a4bd17f76daf7d67d629 (diff) | |
download | exchange-bdd9ef74e6c90381057ca3f1ece095663e21e59a.tar.xz |
fastoption may not be supported by all curls
-rw-r--r-- | src/exchange-lib/curl_defaults.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchange-lib/curl_defaults.c b/src/exchange-lib/curl_defaults.c index 99576308b..cd0f1aeba 100644 --- a/src/exchange-lib/curl_defaults.c +++ b/src/exchange-lib/curl_defaults.c @@ -44,11 +44,12 @@ TEL_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 |