mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
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:
parent
57ac61a469
commit
4ee203542d
@ -1084,6 +1084,9 @@ static CURLcode singleipconnect(struct connectdata *conn,
|
|||||||
CONNECT_RESUME_ON_READ_WRITE | CONNECT_DATA_IDEMPOTENT,
|
CONNECT_RESUME_ON_READ_WRITE | CONNECT_DATA_IDEMPOTENT,
|
||||||
NULL, 0, NULL, NULL);
|
NULL, 0, NULL, NULL);
|
||||||
#elif defined(MSG_FASTOPEN) /* Linux */
|
#elif defined(MSG_FASTOPEN) /* Linux */
|
||||||
|
if(conn->given->flags & PROTOPT_SSL)
|
||||||
|
rc = connect(sockfd, &addr.sa_addr, addr.addrlen);
|
||||||
|
else
|
||||||
rc = 0; /* Do nothing */
|
rc = 0; /* Do nothing */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user