fastoption may not be supported by all curls

This commit is contained in:
Christian Grothoff 2018-12-14 09:41:53 +01:00
parent c1a75b5b98
commit bdd9ef74e6
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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