dns: suppress log

This commit is contained in:
Nick Peng
2023-05-06 21:56:57 +08:00
parent ccadadd3fb
commit ed102cda03
4 changed files with 12 additions and 10 deletions

View File

@@ -3537,7 +3537,7 @@ static int _dns_client_send_packet(struct dns_query_struct *query, void *packet,
server_info->type);
time_t now = 0;
time(&now);
if (now - 5 > server_info->last_recv || send_err != ENOMEM) {
if (now - 10 > server_info->last_recv || send_err != ENOMEM) {
server_info->prohibit = 1;
tlog(TLOG_INFO, "server %s not alive, prohibit", server_info->ip);
_dns_client_shutdown_socket(server_info);