Skip to content

Commit

Permalink
connect: disable TFO on Linux when using SSL
Browse files Browse the repository at this point in the history
- Linux TFO + TLS is not implemented yet.

Bug: #907
  • Loading branch information
jay committed Jul 20, 2016
1 parent 57ac61a commit 4ee2035
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/connect.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 4ee2035

Please sign in to comment.