bounjour-hap sometimes sends massive fragmented mdns packets Change to the no-feature version of LwIP to disable all fragmenting and reassembly of packets.
If the TCP client suddenly goes away, LwIP will continue to send TCP retries for about 30 minutes. This can consume up to about 4k of heap. Use a custom lwip library that sets max tcp retries to 2, which will quickly close the connection and free up memory in this scenerio.
Settings changes for LwIP
bounjour-hap sometimes sends massive fragmented mdns packets Change to the no-feature version of LwIP to disable all fragmenting and reassembly of packets.
If the TCP client suddenly goes away, LwIP will continue to send TCP retries for about 30 minutes. This can consume up to about 4k of heap. Use a custom lwip library that sets max tcp retries to 2, which will quickly close the connection and free up memory in this scenerio.