AS a http Server, I like to send a (quite long) response back to a http Client by reading it from a file in the spiffs block by block (blocksize is 2048) and sending it towards the client (using ‘mg_send’)
Sometimes it works fine and sometimes is seems to lose some data.
Checking the resulting html-Page in the Browser, I can see missing Code at the end or in the middle.
Is it possible to be too fast sending the blocks, so that data is lost?
If so, is there a possibility to wait for the sender to finish?
Thanks a Lot!