Fix SSL crash issue: tcp-nodelay ?
This commit is contained in:
@@ -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.");
|
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 (connect(fd, (struct sockaddr *)&server_info->addr, server_info->ai_addrlen) != 0) {
|
||||||
if (errno != EINPROGRESS) {
|
if (errno != EINPROGRESS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user