Skip to content
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

Non blocking TcpListener acceptance #568

Closed
pbdeuchler opened this issue Sep 26, 2022 · 1 comment
Closed

Non blocking TcpListener acceptance #568

pbdeuchler opened this issue Sep 26, 2022 · 1 comment

Comments

@pbdeuchler
Copy link

pbdeuchler commented Sep 26, 2022

Hello,

I'm trying to write an event loop that either accepts a TcpListener connection or performs business logic. The business logic needs to be done on every loop iteration, but incoming connections will be relatively infrequent. This loop is in the hot path and is performance sensitive, so I'd like to avoid accepting the connections in another thread and sharing them over something like an SPSC queue to prevent CPU context switches and cache complications. I believe #533 solves my problem, but is there another way to do this with the Glommio API within a single thread?

Thank you!

@pbdeuchler
Copy link
Author

closing for #569

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

No branches or pull requests

1 participant