diff --git a/pulpcore/download/factory.py b/pulpcore/download/factory.py index 0bd71391ea..7618969e28 100644 --- a/pulpcore/download/factory.py +++ b/pulpcore/download/factory.py @@ -135,8 +135,11 @@ def _make_aiohttp_session_from_remote(self): sock_read=self._remote.sock_read_timeout, connect=self._remote.connect_timeout, ) + # TCPConnector is supposed to be instanciated in a running loop. + # I don't see why... + # https://github.com/aio-libs/aiohttp/pull/3372 return aiohttp.ClientSession( - connector=aiohttp.TCPConnector(**tcp_conn_opts), + connector=aiohttp.TCPConnector(loop=asyncio.get_event_loop(), **tcp_conn_opts), timeout=timeout, headers=headers, requote_redirect_url=False,