We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2bf77 commit 5c90a00Copy full SHA for 5c90a00
supervisor/coresys.py
@@ -124,7 +124,10 @@ async def init_websession(self) -> None:
124
125
resolver: aiohttp.abc.AbstractResolver
126
try:
127
- resolver = aiohttp.AsyncResolver(loop=self.loop)
+ # Use "unused" kwargs to force dedicated resolver instance. Otherwise
128
+ # aiodns won't reload /etc/resolv.conf which we need to make our connection
129
+ # check work in all cases.
130
+ resolver = aiohttp.AsyncResolver(loop=self.loop, timeout=None)
131
# pylint: disable=protected-access
132
_LOGGER.debug(
133
"Initializing ClientSession with AsyncResolver. Using nameservers %s",
0 commit comments