mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 19:19:18 +08:00
Update dns.c
DNS_MAX_RETRIES定义的数值无效,因为被669行的break;屏蔽掉了
This commit is contained in:
parent
60265d9cde
commit
f089a6ce96
@ -666,7 +666,7 @@ dns_check_entry(u8_t i)
|
||||
pEntry->numdns++;
|
||||
pEntry->tmr = 1;
|
||||
pEntry->retries = 0;
|
||||
break;
|
||||
// break;
|
||||
} else {
|
||||
LWIP_DEBUGF(DNS_DEBUG, ("dns_check_entry: \"%s\": timeout\n", pEntry->name));
|
||||
/* call specified callback function if provided */
|
||||
@ -678,9 +678,10 @@ dns_check_entry(u8_t i)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
else{
|
||||
/* wait longer for the next retry */
|
||||
pEntry->tmr = pEntry->retries;
|
||||
}
|
||||
|
||||
/* send DNS packet for this entry */
|
||||
err = dns_send(pEntry->numdns, pEntry->name, i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user