Bug 1826258 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
https://hg.mozilla.org/mozilla-central/file/9a0019f8494d122b7a149346b08644464d71cfc6/netwerk/dns/nsHostResolver.cpp#l1780 https://searchfox.org/mozilla-central/rev/bf87e869ece2406e9e425a74e8bf77aba0975625/netwerk/dns/nsHostResolver.cpp#1784 ```cpp if (NS_FAILED(status) && rs.Reset()) { ``` https://searchfox.org/mozilla-central/rev/bf87e869ece2406e9e425a74e8bf77aba0975625/netwerk/dns/nsHostResolver.cpp#113-124 ```cpp bool Reset() { // reset no more than once per second if (PR_IntervalToSeconds(PR_IntervalNow() - mLastReset) < 1) { return false; } mLastReset = PR_IntervalNow(); auto result = res_ninit(&_res); LOG(("nsResState::Reset() > 'res_ninit' returned %d", result)); return (result == 0); } ``` So there's a race on either mLastReset or _res