/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.

Claim

Total prize pool $250
Total paid $0
Status Pending
Submitted November 09, 2024
Last updated November 09, 2024

Contributors

DA

davidlar

@davidlar

100%

Sponsors

ZI

ZIO

@ZIO

$250