Sergey Lyubka
Sergey Lyubka
@chkimes thank you for your effort, much appreciated!
FYI - recently I see a much higher rate of failures, now including linux environments. E.g. this invocation required 2 re-runs to clear failures: https://github.com/cesanta/mongoose/actions/runs/2459995427/attempts/1
sizeof(*TYPE) resolves to a correct value regardless of the allocation result . If that's what a static analyzer complains about , then it is a static analyzer should be fixed...
I've invited you to the mongoose-examples org instead - now you can fix any example directly.
Is this PR still relevant?
You cannot delete only one chunk. Either all chunks must be deleted, or none.
Every time a new piece of data arrives, it is reported as HTTP chunk, and appended to the `c->recv`. If you do not delete the chunk, then a new chunk...
I don't understand to be honest, what is your problem. Can you create a failing unit test that demonstrates your issue?
@xiangjs6 sorry, this code is too cryptic even to start looking into it. To avoid wasting yours and ours time, please create a MINIMAL failing unit test, as I suggested...
Thanks. I looked over your code, but still can't figure out what are you trying to do, and what is the problem. I suggest to either NOT processing any chunks...