Skip to content

[Feature]: support registering new connections to event-loops #689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
coderczp opened this issue Mar 27, 2025 · 5 comments
Open

[Feature]: support registering new connections to event-loops #689

coderczp opened this issue Mar 27, 2025 · 5 comments
Assignees
Labels
enhancement New feature or request proposal Proposal for this repo
Milestone

Comments

@coderczp
Copy link

coderczp commented Mar 27, 2025

Description of new feature

需求: 在代理场景下支持server和client复用eventloop

Scenarios for new feature

需求: 在代理场景下支持server和client复用eventloop
描述:
在代理场景中,server和client任意一端的Read数据都需要换醒对方进行write,由于server和client是独立的event loop,因此必然会存在goroutine的切换,如果client复用server的event loop,那么能带来两个好处:1 避免goroutine切换 2 避免buffer的copy

Breaking changes or not?

Yes

Code snippets (optional)

Alternatives for new feature

None.

Additional context (optional)

None.

@coderczp coderczp added enhancement New feature or request proposal Proposal for this repo labels Mar 27, 2025
@panjf2000
Copy link
Owner

一个 issue 一个 feature request,请把这个 issue 拆成两个。

@gh-translator
Copy link
Collaborator

🤖 Non-English text detected, translating ...


One issue and one feature request, please split this issue into two.

@coderczp
Copy link
Author

一个 issue 一个 feature request,请把这个 issue 拆成两个。

done. #690

@gh-translator
Copy link
Collaborator

🤖 Non-English text detected, translating ...


One issue and one feature request, please split this issue into two.

done. #690

@coderczp coderczp changed the title [Feature]: Add eventloop reuse and splice supported to optimize performance in tcp proxy[添加eventloop复用和Linux splice零拷贝支持] [Feature]: Add eventloop reuse to optimize performance in tcp proxy Mar 30, 2025
Copy link

This issue is marked as stale because it has been open for 30 days with no activity.

You should take one of the following actions:

  • Manually close this issue if it is no longer relevant
  • Comment if you have more information to share

This issue will be automatically closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Apr 30, 2025
@panjf2000 panjf2000 added this to the v2.8.0 milestone May 1, 2025
@panjf2000 panjf2000 removed the stale label May 1, 2025
@panjf2000 panjf2000 changed the title [Feature]: Add eventloop reuse to optimize performance in tcp proxy [Feature]: support registering new connections to event-loops May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal Proposal for this repo
Projects
None yet
Development

No branches or pull requests

3 participants