Fill buffer for a chunked response being called with buffer length of zero
Occasionally, the user routine that is used to fill the buffer for a chunked response is called with with a buffer length of zero. Returning any data in this case causes a stack smash protect panic. Returning zero (0) violates the interface definition since zero indicates that there is no more user data and that the response is complete.
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Who is supporting the ESPAsyncWebServer?
Have you tried returning RESPONSE_TRY_AGAIN as the content length?
In that case it should ask you again after a bit of time, hopefully with a bit more space in the buffer.
That would probably require something else reducing its ram usage in the meantime, but it might work.
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future.