From 4ee203542d042e9ba4f137ab252637742998de42 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Wed, 20 Jul 2016 02:49:19 -0400 Subject: [PATCH] connect: disable TFO on Linux when using SSL - Linux TFO + TLS is not implemented yet. Bug: https://github.com/curl/curl/issues/907 --- lib/connect.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {