You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (-vvv option) 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?
The text was updated successfully, but these errors were encountered:
It seems to be related to the HTTPRepository not setting Authenticator's pool_size, which then defaults to 10 (which is usually smaller than than os.cpu_count()+4 that's used as a default value for installer.max-workers).
-vvv
option) 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):
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 :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?
The text was updated successfully, but these errors were encountered: