8000 AsynchPoolError: no free connection · Issue #121 · long2ice/asynch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
AsynchPoolError: no free connection #121
Open
@itssimon

Description

@itssimon

Based on the deprecation warnings in 0.2.5 I changed my application code from:

async with pool.acquire() as conn:

to:

async with pool.connection() as conn:

After deploying this change my application failed with lots of errors like this:

AsynchPoolError('no free connection in the <Pool(minsize=1, maxsize=10) object at 0x7f5ed1859190; status: PoolStatus.opened>')

Looks like previously pool.acquire() would wait for a free connection, while pool.connection() simply throws an exception. Is this expected behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0