change: bump max sockets in lwip Kconfig

Tested under ESP32S3, running 50 tasks, each with a client, and a server
listening to one client, totalizing 150 sockets/files open, forwarding
data from PPP to Ethernet and vice versa.
Reasoning for 255 total sockets/files is VFS local_fd_t being a uint8_t.
Since FD_SETSIZE is defined at tool level, a CMakeLists user definition
is needed in cases above 64 (the default value).

Merges https://github.com/espressif/esp-idf/pull/13866
This commit is contained in:
Rodrigo Silva
2024-05-27 13:47:27 -04:00
committed by BOT
parent 93ce86a309
commit c52114bb0b
2 changed files with 8 additions and 3 deletions

View File

@ -135,13 +135,19 @@ menu "LWIP"
config LWIP_MAX_SOCKETS config LWIP_MAX_SOCKETS
int "Max number of open sockets" int "Max number of open sockets"
range 1 16 range 1 253
default 10 default 10
help help
The practical maximum limit is
determined by available heap memory at runtime.
Sockets take up a certain amount of memory, and allowing fewer Sockets take up a certain amount of memory, and allowing fewer
sockets to be open at the same time conserves memory. Specify sockets to be open at the same time conserves memory. Specify
the maximum amount of sockets here. The valid value is from 1 the maximum amount of sockets here. The valid value is from 1
to 16. to 253. If using value above 61, update CMakeLists defining
FD_SETSIZE to the number of sockets used plus the
expected open files (minimum of +3 for stdout, stderr and stdin).
config LWIP_USE_ONLY_LWIP_SELECT config LWIP_USE_ONLY_LWIP_SELECT
bool "Support LWIP socket select() only (DEPRECATED)" bool "Support LWIP socket select() only (DEPRECATED)"

View File

@ -61,7 +61,6 @@ components/json/cJSON/
components/spiffs/include/spiffs_config.h components/spiffs/include/spiffs_config.h
components/unity/unity/src/unity_internals.h components/unity/unity/src/unity_internals.h
components/unity/unity/extras/
components/unity/include/unity_config.h components/unity/include/unity_config.h
components/unity/include/unity_test_runner.h components/unity/include/unity_test_runner.h