From: Jay Satiro Date: Wed, 20 Jul 2016 06:49:19 +0000 (-0400) Subject: connect: disable TFO on Linux when using SSL X-Git-Tag: curl-7_50_0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ee203542d042e9ba4f137ab252637742998de42;p=thirdparty%2Fcurl.git connect: disable TFO on Linux when using SSL - Linux TFO + TLS is not implemented yet. Bug: https://github.com/curl/curl/issues/907 --- diff --git a/lib/connect.c b/lib/connect.c index 2229a435ef..0047f9a0ba 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 {