Tested on a lxd container configured with 8.8.8.8 as the nameserver and 200ms of network latency added with tc.
----------------------------------------- Before upgrading to version in -proposed: ----------------------------------------- $ dpkg-query --show python3-aiohttp python3-aiohttp 3.6.2-1build1 $ python3 file.py Task exception was never retrieved future: <Task finished name='Task-3' coro=<TCPConnector._resolve_host() done, defined at /usr/lib/python3/dist-packages/aiohttp/connector.py:774> exception=gaierror(-2, 'Name or service not known')> Traceback (most recent call last): File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 829, in _resolve_host addrs = await \ File "/usr/lib/python3/dist-packages/aiohttp/resolver.py", line 29, in resolve infos = await self._loop.getaddrinfo( File "/usr/lib/python3.8/asyncio/base_events.py", line 825, in getaddrinfo return await self.run_in_executor( File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known ---------------------------------------- After upgrading to version in -proposed: ----------------------------------------- $ dpkg-query --show python3-aiohttp python3-aiohttp 3.6.2-1ubuntu1 $ python3 file.py $ Also tested using a subiquity ISO based on the 22.04.1 snap version. No crash when using the python3-aiohttp from proposed. ** Tags removed: verification-needed-focal ** Tags added: verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1969817 Title: Uncaught exception when connector is cancelled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-aiohttp/+bug/1969817/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs