How are errors in the payload of TCP packets handled by the receiving application? The packet is received but for various reasons (including sending erroneous packets on purpose) the payload of the packet is unexpected/malformed so the application can't handle it (or does handle it in some way but still the original/expected data is missing).
Will the application send an ACK? Will the packet be handled like packet loss and retransmission will occur? Does it depend on the application in general or is this kind of error handling independent of OS or application?