Skip to content

Aborted connection #166

Open
Open
@lvalladares

Description

@lvalladares

Hello!

Im using aiomysql with SQLAlchemy and i get this warning from mysql:

Aborted connection to db: 'zzzzzzz' user: 'xxxx' host: 'XXXXXXXX' (Got an error reading communication packets)

I've readed a little bit about this error and this seems to happens when you dont close connection properly, im closing my conns like this:

    await connection.close()
    engine.close()
    await engine.wait_closed()

where engine is the var storing the engine and connection the result of engine.acquire(). Maybe im clossing the connection wrong?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions