Bug 1881437 - Use a thread local __res_state for HTTPS res_nquery r=necko-reviewers...
commitc8b19587f0bb34a4f60fb782b641748d9f38b5b5
authorValentin Gosu <valentin.gosu@gmail.com>
Thu, 22 Feb 2024 12:46:58 +0000 (22 12:46 +0000)
committerValentin Gosu <valentin.gosu@gmail.com>
Thu, 22 Feb 2024 12:46:58 +0000 (22 12:46 +0000)
treefda116850beba204ae062c2ed9bb7ed26ec596ce
parent2b68cf4fa0b094a8d1ab682dbe823abd56348312
Bug 1881437 - Use a thread local __res_state for HTTPS res_nquery r=necko-reviewers,kershaw

This makes it so each thread has its own __res_state instead of using
the global _res which could cause data races.

Differential Revision: https://phabricator.services.mozilla.com/D202400
netwerk/dns/GetAddrInfo.h
netwerk/dns/PlatformDNSAndroid.cpp
netwerk/dns/PlatformDNSUnix.cpp
netwerk/dns/PlatformDNSWin.cpp
netwerk/dns/nsHostResolver.cpp