aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2016-04-03 13:08:28 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-04-18 23:21:50 +0200
commit03de4e4b2192bec7de94d2d5abd2a25f86c17ac3 (patch)
tree689fd77d0022d451ed0d1a5947519ac493cedc49 /lib/url.c
parentd49087f6bc95d159eeb1172173fc1e95411041fa (diff)
connect: implement TCP Fast Open for Linux
Closes #660
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index e76d4e8e0..f1028f34c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2633,7 +2633,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
data->set.tcp_keepintvl = va_arg(param, long);
break;
case CURLOPT_TCP_FASTOPEN:
-#if defined(CONNECT_DATA_IDEMPOTENT)
+#if defined(CONNECT_DATA_IDEMPOTENT) || defined(MSG_FASTOPEN)
data->set.tcp_fastopen = (0 != va_arg(param, long))?TRUE:FALSE;
#else
result = CURLE_NOT_BUILT_IN;