Confronting myself with issue https://github.com/maximkulkin/esp-homekit/issues/35 I found out that it's not a true memory leak but just a bunch long dead connections. They will be dropped eventually by TCP stack but in low memory environments this may come too late... . Adding keepalive on client socket solved that for me.
Confronting myself with issue https://github.com/maximkulkin/esp-homekit/issues/35 I found out that it's not a true memory leak but just a bunch long dead connections. They will be dropped eventually by TCP stack but in low memory environments this may come too late... . Adding keepalive on client socket solved that for me.