-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
- Poetry version: v1.6.1
- Python version: v3.12.0rc2
- OS version and name: Ubuntu 22.04
- pyproject.toml: https://gist.github.com/jmgilman/97a3c2ee32c5c7ad5d69390790fbf377
- I am on the latest stable Poetry version, installed using a recommended method.
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have consulted the FAQ and blog for any relevant entries or release notes.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
It seems there's been a long-running issue when using Poetry to install dependencies on a machine with a large number of cores. Specifically, when installing, the following message is spammed many times (depending on the number of cores):
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
It appears to be related to exceeding the default connection pool size of urllib3 which is 10. I would expect Poetry to set this value to at least be equal to the number of workers being used. As it stands, the only workaround is :
poetry config installer.max-workers 10
Is there a technical reason why this issue cannot be resolved? I've seen the above "fix" in dozens of projects. Why has it not been addressed? If there is a technical reason, why not hard code the max worker limit at 10?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged