aio-libs / aio-libs/aiomysql

Aborted connection

Open
#166 7 comments 4 reactions 0 assignees View on GitHub
sqlalchemy
Dominant language
Python
Stars
1.9k
Forks
272
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.