Commit 4ee20354 authored by Jay Satiro's avatar Jay Satiro
Browse files

connect: disable TFO on Linux when using SSL

- Linux TFO + TLS is not implemented yet.

Bug: https://github.com/curl/curl/issues/907
parent 57ac61a4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1084,6 +1084,9 @@ static CURLcode singleipconnect(struct connectdata *conn,
                    CONNECT_RESUME_ON_READ_WRITE | CONNECT_DATA_IDEMPOTENT,
                    NULL, 0, NULL, NULL);
#elif defined(MSG_FASTOPEN) /* Linux */
      if(conn->given->flags & PROTOPT_SSL)
        rc = connect(sockfd, &addr.sa_addr, addr.addrlen);
      else
        rc = 0; /* Do nothing */
#endif
    }