From 28885dca4c07a11198e8340bb6887c5d99315cc0 Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <andrew@tridgell.net>
Date: Thu, 7 Dec 2023 18:54:50 +1100
Subject: [PATCH] HAL_ChibiOS: adjust buffer sizes

this fixes issues with TCP accepts being lost in web server
---
 libraries/AP_HAL_ChibiOS/hwdef/common/lwipopts.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/lwipopts.h b/libraries/AP_HAL_ChibiOS/hwdef/common/lwipopts.h
index 7ff155ca45..4cd1e61bee 100644
--- a/libraries/AP_HAL_ChibiOS/hwdef/common/lwipopts.h
+++ b/libraries/AP_HAL_ChibiOS/hwdef/common/lwipopts.h
@@ -62,6 +62,8 @@
 #define MEMP_MEM_MALLOC 1
 #define SO_REUSE 1
 #define SO_REUSE_RXTOALL 1
+#define DEFAULT_ACCEPTMBOX_SIZE 20
+#define MEMP_NUM_PBUF 64
 
 /*
   map LWIP debugging onto ap_networking_printf to allow for easier