Coder Social home page Coder Social logo

Packet sequence number wrong about asyncmy HOT 6 OPEN

MarkReedZ avatar MarkReedZ commented on June 7, 2024
Packet sequence number wrong

from asyncmy.

Comments (6)

trim21 avatar trim21 commented on June 7, 2024

could you provide a full reproduction example?

from asyncmy.

ipfans avatar ipfans commented on June 7, 2024

@trim21 it's a concurrcy bug that not easy to repoduce all the time. It could be happen when your program in high loads.

from asyncmy.

trim21 avatar trim21 commented on June 7, 2024

@trim21 it's a concurrcy bug that not easy to repoduce all the time. It could be happen when your program in high loads.

I understand, can you provide a minimal example?

from asyncmy.

ipfans avatar ipfans commented on June 7, 2024

@trim21 I think the first example could reproduce this issue. But you may need try it multiple times

from asyncmy.

trim21 avatar trim21 commented on June 7, 2024

@trim21 I think the first example could reproduce this issue. But you may need try it multiple times

sadly I can't.

import asyncmy # 0.2.9
import fastapi

app = fastapi.FastAPI()


@app.on_event("startup")
async def startup_event():
    app.mysql_pool = await asyncmy.create_pool(
        autocommit=True,
        minsize=4,
        maxsize=20,
        ...
    )


@app.get("/test")
async def test():
    async with app.mysql_pool.acquire() as conn:
        async with conn.cursor() as cur:
            await cur.execute("...")

with uvicorn a:app --no-access-log and hey -z 3m -c 16 http://127.0.0.1:8000/test on win10/ubuntu

from asyncmy.

romkazor avatar romkazor commented on June 7, 2024

Confirm. 0.2.7 same problem. 0.2.5 stable

from asyncmy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.