http2 icon indicating copy to clipboard operation
http2 copied to clipboard

[Limitaion] sendRequest function passed to the client is NOT thread-safe – it cannot be called concurrently

Open epoberezkin opened this issue 2 years ago • 3 comments

That is, can it be used concurrently from multiple threads?

Or should there be something that queues calls to it, like reads/writes to TCP handle?

I've actually already implemented a queueing mechanism, and now just feeling a bit stupid as from looking at source code it does look thread safe, and queueing requests just makes performance worse...

epoberezkin avatar Apr 13 '22 09:04 epoberezkin