From acc579ba0127b775eceeabb734a3bd41d40e5218 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 4 Jan 2023 12:57:07 -0600 Subject: [PATCH] Increase the memory for the lwip stack This is a speeculative fix for #7346. The theory is that having some active socket objects uses up the small (4000-byte) pool reserved for lwip and prevents mdns from operating properly. However, as I wasn't able to reproduce the problem with the given script, this is just a guess. --- ports/raspberrypi/lwip_inc/lwipopts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/lwip_inc/lwipopts.h b/ports/raspberrypi/lwip_inc/lwipopts.h index 6d116e89b6c11..767e38497667e 100644 --- a/ports/raspberrypi/lwip_inc/lwipopts.h +++ b/ports/raspberrypi/lwip_inc/lwipopts.h @@ -20,7 +20,7 @@ #define MEM_LIBC_MALLOC 0 #endif #define MEM_ALIGNMENT 4 -#define MEM_SIZE 4000 +#define MEM_SIZE 8000 #define MEMP_NUM_TCP_SEG 32 #define MEMP_NUM_ARP_QUEUE 10 #define PBUF_POOL_SIZE 24