Fix for bug 72805. r=darin, sr=dougt, a=asa. No longer displaying the "Resolving..." message for IP addresses (and additionally for cached/resolved cases). This should now reduce the number of "Resolving hostname" events (and hence flashing status messages) on page loads as well.

This commit is contained in:
gagan%netscape.com 2001-06-18 21:26:16 +00:00
Родитель a4535fb4c0
Коммит 8f9ddde441
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -456,9 +456,11 @@ nsresult nsSocketTransport::Process(PRInt16 aSelectFlags)
LOG(("nsSocketTransport: Transport [host=%s:%d this=%x] is in WaitDNS state.\n", LOG(("nsSocketTransport: Transport [host=%s:%d this=%x] is in WaitDNS state.\n",
mHostName, mPort, this)); mHostName, mPort, this));
mStatus = doResolveHost(); mStatus = doResolveHost();
// Send status message // Send status message
OnStatus(NS_NET_STATUS_RESOLVING_HOST); // only send a status if doResolveHost is going to do some
// resolution
if (mStatus != NS_OK)
OnStatus(NS_NET_STATUS_RESOLVING_HOST);
break; break;
case eSocketState_WaitConnect: case eSocketState_WaitConnect: