Skip to content

[Enhancement] use stream load async return to optimize the performance under high concurrency #53139

Closed

Description

@Userwhite

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Currently use libevent to handle http request, there are multi http threads for the same port. When request is sent to one thread, on_header、on_chunk_data、handle can only be executed on this thread.
However, handle method need to wait for load finish, and will block all requests on this thread.

How to reproduce?
use group commit sync mode, it will happens.

Solution

To fix it, we make handle async by cherry-pick #36772.
And, we add a logic to ensure free order is correct.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. github-actions commented on Jan 9, 2026

    @github-actions
    Contributor

    We're closing this issue because it hasn't been updated in a while.
    If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!

  2. added a commit that references this issue on Jan 14, 2026
    3ec56d7
  3. added a commit that references this issue on Jan 14, 2026
    a1ba04f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions