|
From: | April M |
Subject: | [lwip-devel] [bug #46079] DNS didn't try the second dns server when the first one failed |
Date: | Wed, 30 Sep 2015 09:32:44 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 |
URL: <http://savannah.nongnu.org/bugs/?46079> Summary: DNS didn't try the second dns server when the first one failed Project: lwIP - A Lightweight TCP/IP stack Submitted by: april_m Submitted on: Wed 30 Sep 2015 09:32:42 AM GMT Category: DNS Severity: 3 - Normal Item Group: Change Request Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: git head _______________________________________________________ Details: The logic in dns_check_entry() makes DNS only try one dns server. It should be modified as below in "case DNS_STATE_ASKING" in line 1012 in dns.c: 1. remove the first "break;" in line 1020, which is below "entry->retries = 0;" 2. use "else" to wrap "entry->tmr = entry->retries;" in line 1032,as bellow: if (++entry->retries == DNS_MAX_RETRIES) { ... } else { /* wait longer for the next retry */ entry->tmr = entry->retries; } _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?46079> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |