Fix SSL crash issue: tcp-nodelay ?

This commit is contained in:
Nick Peng
2019-02-12 23:38:51 +08:00
parent c7d304423e
commit d9dd02c9b0

View File

@@ -930,7 +930,8 @@ static int _DNS_client_create_socket_tls(struct dns_server_info *server_info)
tlog(TLOG_DEBUG, "enable TCP fast open failed.");
}
setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &yes, sizeof(yes));
// ? this cause ssl crash ?
// setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &yes, sizeof(yes));
if (connect(fd, (struct sockaddr *)&server_info->addr, server_info->ai_addrlen) != 0) {
if (errno != EINPROGRESS) {