The LWIP_MAX_SOCKETS setting in esp-idf/components/lwip is currently limited to 16, which can be restrictive since ESP-IDF can easily handle more open sockets. This limit is quickly reached when running services like an HTTP server. Increasing the limit to 32 would solve this problem without causing any issues, while still keeping the default value at 10. Right now, I have to manually patch ESP-IDF to work around this limit, so it would be great if this change could be made directly in the codebase.
Describe the solution you'd like.
Patch applied to esp-idf:
diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig
index a47bbe9ecd..3a219200cf 100644
--- a/components/lwip/Kconfig
+++ b/components/lwip/Kconfig
@@ -135,8 +135,8 @@ menu "LWIP"
config LWIP_MAX_SOCKETS
int "Max number of open sockets"
- range 1 16
- default 10
+ range 1 32
help
Sockets take up a certain amount of memory, and allowing fewer
sockets to be open at the same time conserves memory. Specify
Is your feature request related to a problem?
The
LWIP_MAX_SOCKETS
setting inesp-idf/components/lwip
is currently limited to 16, which can be restrictive since ESP-IDF can easily handle more open sockets. This limit is quickly reached when running services like an HTTP server. Increasing the limit to 32 would solve this problem without causing any issues, while still keeping the default value at 10. Right now, I have to manually patch ESP-IDF to work around this limit, so it would be great if this change could be made directly in the codebase.Describe the solution you'd like.
Patch applied to
esp-idf
:Describe alternatives you've considered.
No response
Additional context.
No response