Skip to content

Packet sequence number wrongΒ #89

@MarkReedZ

Description

@MarkReedZ

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

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