add more logging to nsHostResolver to help diagnose 173924, in which host lookups stop working afer extended period of time, r/sr=darin

This commit is contained in:
bienvenu%nventure.com 2005-10-28 21:24:48 +00:00
Родитель 50752cbc92
Коммит 4fc86d9668
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -532,6 +532,10 @@ nsHostResolver::IssueLookup(nsHostRecord *rec)
return NS_ERROR_OUT_OF_MEMORY;
}
}
#if defined(PR_LOGGING)
else
LOG(("lookup waiting for thread - %s ...\n", rec->host));
#endif
return NS_OK;
}
@ -654,6 +658,7 @@ nsHostResolver::ThreadFunc(void *arg)
// convert error code to nsresult.
nsresult status = ai ? NS_OK : NS_ERROR_UNKNOWN_HOST;
resolver->OnLookupComplete(rec, status, ai);
LOG(("lookup complete for %s ...\n", rec->host));
}
NS_RELEASE(resolver);
LOG(("nsHostResolver::ThreadFunc exiting\n"));