C#C
C#3y ago
Anton

❔ System.IO.Pipelines cannot complete the reader

Hey. I'm having reader.CompleteAsync throw because it tries to return an empty buffer to the array pool.
All of the reading goes successfully, but when I try to CompleteAsync the reader, it ends up in that code with an invalid state for one of the segments, apparently
Does anyone have any idea what could be up?

Approximate code is here (it doesn't contain the data structures, just shows the most important functions).

https://paste.mod.gg/wchbuamcrxfn/0
image.png
A tool for sharing your source code with the world!
Was this page helpful?