r-jevering. now we try and resolve non-qualified hosts on windows first, before sending them to the keyword server

This commit is contained in:
valeski%netscape.com 2000-02-02 02:22:36 +00:00
Родитель 7546e3966f
Коммит 5def5e2a35
2 изменённых файлов: 2 добавлений и 26 удалений

Просмотреть файл

@ -2080,19 +2080,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
spaceLoc = urlStr.FindChar(' ');
PRBool keyword = PR_FALSE;
if ( (qMarkLoc == 0)
#ifdef XP_PC
// This is windows only because windows is the
// only platform that utilizes WINS resolution
// (a DNS fallback) which can take several minutes to
// fail a resolve call if the host does not exist.
// Thus, this forces us to bypass DNS/WINS altogether
// on windows; for nonQualifiedHosts *only*.
// "nonQualifiedHost"
|| ( (qMarkLoc == -1) && (spaceLoc == -1) )
#endif // XP_PC
) {
if (qMarkLoc == 0) {
keyword = PR_TRUE;
} else if ( (spaceLoc > 0) &&
( (qMarkLoc == -1) || (spaceLoc < qMarkLoc) )) {

Просмотреть файл

@ -2080,19 +2080,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
spaceLoc = urlStr.FindChar(' ');
PRBool keyword = PR_FALSE;
if ( (qMarkLoc == 0)
#ifdef XP_PC
// This is windows only because windows is the
// only platform that utilizes WINS resolution
// (a DNS fallback) which can take several minutes to
// fail a resolve call if the host does not exist.
// Thus, this forces us to bypass DNS/WINS altogether
// on windows; for nonQualifiedHosts *only*.
// "nonQualifiedHost"
|| ( (qMarkLoc == -1) && (spaceLoc == -1) )
#endif // XP_PC
) {
if (qMarkLoc == 0) {
keyword = PR_TRUE;
} else if ( (spaceLoc > 0) &&
( (qMarkLoc == -1) || (spaceLoc < qMarkLoc) )) {