Remove bogus ifdef for tcp fast open
This commit is contained in:
parent
feec6e30e6
commit
d821ecc3bb
@ -44,12 +44,10 @@ TAL_curl_easy_get (const char *url)
|
|||||||
curl_easy_setopt (eh,
|
curl_easy_setopt (eh,
|
||||||
CURLOPT_ENCODING,
|
CURLOPT_ENCODING,
|
||||||
"deflate"));
|
"deflate"));
|
||||||
#ifdef CURLOPT_TCP_FASTOPEN
|
|
||||||
GNUNET_assert (CURLE_OK ==
|
GNUNET_assert (CURLE_OK ==
|
||||||
curl_easy_setopt (eh,
|
curl_easy_setopt (eh,
|
||||||
CURLOPT_TCP_FASTOPEN,
|
CURLOPT_TCP_FASTOPEN,
|
||||||
1L));
|
1L));
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
/* Unfortunately libcurl needs chunk to be alive until after
|
/* Unfortunately libcurl needs chunk to be alive until after
|
||||||
curl_easy_perform. To avoid manual cleanup, we keep
|
curl_easy_perform. To avoid manual cleanup, we keep
|
||||||
|
@ -49,11 +49,9 @@ TEL_curl_easy_get (const char *url)
|
|||||||
curl_easy_setopt (eh,
|
curl_easy_setopt (eh,
|
||||||
CURLOPT_FOLLOWLOCATION,
|
CURLOPT_FOLLOWLOCATION,
|
||||||
1L));
|
1L));
|
||||||
#ifdef CURLOPT_TCP_FASTOPEN
|
|
||||||
GNUNET_assert (CURLE_OK ==
|
GNUNET_assert (CURLE_OK ==
|
||||||
curl_easy_setopt (eh,
|
curl_easy_setopt (eh,
|
||||||
CURLOPT_TCP_FASTOPEN,
|
CURLOPT_TCP_FASTOPEN,
|
||||||
1L));
|
1L));
|
||||||
#endif
|
|
||||||
return eh;
|
return eh;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user