dgrr / http2

HTTP/2 implementation for fasthttp
Apache License 2.0
208 stars 35 forks source link

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

Open dgrr opened 2 years ago

dgrr commented 2 years ago

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 commented 2 years ago

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