-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Running wrk against a web page with a simple select caused my logs to fill up with errors. Aiomysql has no problem with the same exact code. I'll create a simple test later to reproduce this.
Unhandled exception:
<class 'asyncmy.errors.InternalError'>
InternalError('Packet sequence number wrong - got 102 expected 1')
Unhandled exception:
<class 'asyncmy.errors.InternalError'>
InternalError('Packet sequence number wrong - got 112 expected 1')
Using create_pool
await aiomysql.create_pool( autocommit=True, minsize=4, maxsize=20)
The page handler is just a simple select
async with app.mysql_pool.acquire() as conn:
async with conn.cursor() as cur:
await cur.execute("SELECT * from table where ... ");
The wrk cmd
wrk -t2 -c8 -d2s http://localhost/select
vikyw89
Metadata
Metadata
Assignees
Labels
No labels