Update code
This commit is contained in:
@@ -315,7 +315,7 @@ void _dns_client_period_run()
|
||||
pthread_mutex_lock(&client.domain_map_lock);
|
||||
list_for_each_entry_safe(query, tmp, &client.dns_request_list, dns_request_list)
|
||||
{
|
||||
if (now - query->send_tick >= 2000) {
|
||||
if (now - query->send_tick >= 1000) {
|
||||
_dns_client_query_remove(query, 1);
|
||||
}
|
||||
}
|
||||
@@ -416,7 +416,7 @@ static int _dns_client_process(struct dns_query_struct *dns_query, unsigned long
|
||||
return -1;
|
||||
}
|
||||
|
||||
tlog(TLOG_DEBUG, "recv from %s", gethost_by_addr(from_host, (struct sockaddr *)&from, from_len));
|
||||
tlog(TLOG_INFO, "recv from %s", gethost_by_addr(from_host, (struct sockaddr *)&from, from_len));
|
||||
|
||||
if (_dns_client_recv(inpacket, len, &from, from_len) != 0) {
|
||||
int fd = open("dns.bin", O_CREAT | O_TRUNC | O_RDWR);
|
||||
|
||||
Reference in New Issue
Block a user