ratgdo / homekit-ratgdo

A native HomeKit implementation of a Security+ 2.0 garage door controller based on ratgdo hardware
https://ratgdo.github.io/homekit-ratgdo/
GNU General Public License v3.0
214 stars 21 forks source link

Settings changes for LwIP #147

Closed jgstroud closed 7 months ago

jgstroud commented 7 months ago

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.