Skip to content

ConnectionProxy doesn't detach conn when leaving async context #19

Open
@touilleMan

Description

@touilleMan

Originally reported by @vxgmichel

connection pool's acquire context manager returns a connection proxy object that can still be used after we have left the context manager (instead of raising an error)

This is because the triopg version of the connection proxy is missing an additional cleanup routine compared to what is done in asyncpg:
https://github.com/MagicStack/asyncpg/blob/7cb4e70d88d165273997d914280c6d109fbbc8f6/asyncpg/pool.py#L78-L84

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions