| 
					
				 | 
			
			
				@@ -1380,6 +1380,9 @@ static int _DNS_client_create_socket_tcp(struct dns_server_info *server_info) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &yes, sizeof(yes)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	setsockopt(fd, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	setsockopt(fd, IPPROTO_IP, IP_TOS, &ip_tos, sizeof(ip_tos)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	setsockopt(fd, IPPROTO_TCP, TCP_THIN_DUPACK, &yes, sizeof(yes)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	setsockopt(fd, IPPROTO_TCP, TCP_THIN_LINEAR_TIMEOUTS, &yes, sizeof(yes)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	set_sock_keepalive(fd, 15, 3, 4); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if (connect(fd, (struct sockaddr *)&server_info->addr, server_info->ai_addrlen) != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (errno != EINPROGRESS) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1449,6 +1452,9 @@ static int _DNS_client_create_socket_tls(struct dns_server_info *server_info, ch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	// setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &yes, sizeof(yes)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	setsockopt(fd, SOL_SOCKET, SO_PRIORITY, &priority, sizeof(priority)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	setsockopt(fd, IPPROTO_IP, IP_TOS, &ip_tos, sizeof(ip_tos)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	setsockopt(fd, IPPROTO_TCP, TCP_THIN_DUPACK, &yes, sizeof(yes)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	setsockopt(fd, IPPROTO_TCP, TCP_THIN_LINEAR_TIMEOUTS, &yes, sizeof(yes)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	set_sock_keepalive(fd, 15, 3, 4); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if (connect(fd, (struct sockaddr *)&server_info->addr, server_info->ai_addrlen) != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (errno != EINPROGRESS) { 
			 |