connect: disable TFO on Linux when using SSL

- Linux TFO + TLS is not implemented yet.

Bug: https://github.com/curl/curl/issues/907
This commit is contained in:
Jay Satiro 2016-07-20 02:49:19 -04:00
parent 57ac61a469
commit 4ee203542d
1 changed files with 4 additions and 1 deletions

View File

@ -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 {