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

How to get rid of the channels while being thread-safe? #26

Open
dgrr opened this issue Aug 22, 2021 · 1 comment
Open

How to get rid of the channels while being thread-safe? #26

dgrr opened this issue Aug 22, 2021 · 1 comment

Comments

@dgrr
Copy link
Owner

dgrr commented Aug 22, 2021

Yes, that's quite a challenge. I don't want to use channels, but how do you keep being thread-safe then?
The main problem is that you can't serialize 2 requests at the same time, because one might modify the table and the other should apply those changes...

I'll need to investigate how nghttp2 does those kind of things.

@dgrr
Copy link
Owner Author

dgrr commented Jan 11, 2022

It's called one thread. If we have multiple threads, looks like there's no way to get rid of channels.

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