aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-07-20 02:49:19 -0400
committerJay Satiro <raysatiro@yahoo.com>2016-07-20 02:49:19 -0400
commit4ee203542d042e9ba4f137ab252637742998de42 (patch)
tree689fd3b98c7a66473d613bb02dcd2e569561c16a /lib/connect.c
parent57ac61a46907edc068fbd0f221751b48082fdfce (diff)
connect: disable TFO on Linux when using SSL
- Linux TFO + TLS is not implemented yet. Bug: https://github.com/curl/curl/issues/907
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 2229a435e..0047f9a0b 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -1084,7 +1084,10 @@ static CURLcode singleipconnect(struct connectdata *conn,
CONNECT_RESUME_ON_READ_WRITE | CONNECT_DATA_IDEMPOTENT,
NULL, 0, NULL, NULL);
#elif defined(MSG_FASTOPEN) /* Linux */
- rc = 0; /* Do nothing */
+ if(conn->given->flags & PROTOPT_SSL)
+ rc = connect(sockfd, &addr.sa_addr, addr.addrlen);
+ else
+ rc = 0; /* Do nothing */
#endif
}
else {