/claim #3173
This PR aims to fix 3173 by making sure we don’t read more data than we can handle. Now ctx.read() is called after the queue is drained by the consuming end of the stream. The call to ctx.read() will fill the queue with more data asynchronously. Nettys AUTO_READ flag is already turned off in zio-http and ctx.read should be called when we are ready for more data, not before.
I’m not sure if we should keep the unbounded queue or not. I guess it will only contain one chunk at most.
davidlar
@davidlar
ZIO
@ZIO