Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #6007/386c0b99 backport][3.22] Finish backporting aiohttp 3.10 bump #6008

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pulpcore/download/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down