Skip to content

[Don't Merge] Feature: drain sockets on a dedicated "reader" thread #241

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
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

telamon
Copy link

@telamon telamon commented Jan 9, 2025

  • added unobtrusive build option USE_DRAIN_THREAD. default: disabled

@telamon telamon changed the title [wait] Feature: dedicated thread to drain socket recv bufffer Feature: dedicated thread to drain socket recv bufffer Jan 11, 2025
@telamon telamon changed the title Feature: dedicated thread to drain socket recv bufffer Feature: dedicated thread to drain socket's recive buffer Jan 11, 2025
@telamon telamon changed the title Feature: dedicated thread to drain socket's recive buffer Feature: drain sockets on a dedicated "reader" thread Jan 11, 2025
telamon added 2 commits March 17, 2025 01:37
- add thread state `CLOSING`
- change leaky `thread->queue` into lockfree ringbuffer
- fixed thread initialization
- add `ASSERT_RUNS_ON_THREAD` and `ASSERT_RUNS_ON_MAIN`
- add boatload of asserts
@telamon telamon changed the title Feature: drain sockets on a dedicated "reader" thread [Don't Merge] Feature: drain sockets on a dedicated "reader" thread Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants