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

Align connection pool size with installer.max-workers config option #8559

Merged
merged 5 commits into from
Oct 28, 2023
Next Next commit
Leverage requests.adapters.DEFAULT_POOLSIZE to avoid magic number a…
…s default `pool_size` in `Authenticator.__init__()`
  • Loading branch information
jakob-keller authored and radoering committed Oct 28, 2023
commit ba0da5ebad20612cb873781943da45b2eee4c1dd
3 changes: 2 additions & 1 deletion src/poetry/utils/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from typing import Any

import requests
import requests.adapters
import requests.auth
import requests.exceptions

Expand Down Expand Up @@ -110,7 +111,7 @@ def __init__(
io: IO | None = None,
cache_id: str | None = None,
disable_cache: bool = False,
pool_size: int = 10,
pool_size: int = requests.adapters.DEFAULT_POOLSIZE,
) -> None:
self._config = config or Config.create()
self._io = io
Expand Down