Skip to content

Connection pool is full, discarding connection: pypi.org. Connection pool size: 10 #8469

@jmgilman

Description

@jmgilman
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions