all streams in a single goroutine (I'm supposed to make them real concurrent), I gotta synchronize them somehow. So, basically, demultiplex and multiplex back when writing the response
so my question is, how to do it properly? I can imagine how to make a lock-free buffer in order to write responses (I still have to implement the Naggle's algorithm by my own, but it's relatively fine). But how to do it on read stage - I've got absolutely no idea
there's one more issue. Which approach to choose in order to deliver frame payloads? For example, we got DATA frame. We can read the payload completely and then pass it to the associated goroutine
Обсуждают сегодня