-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change: bump max sockets in lwip Kconfig (IDFGH-12906) #13866
Conversation
👋 Hello rdgoprslv, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, this is very helpful, including the description and note about FD_SETSIZE
!
Could you please squash the commits into one?
Done. |
I'll agree this is a cool PR, but how do we handle Also what about the case of other VFS usages that are not sockets? Can that be confirmed as still working when using 61 sockets (as example)? |
I agree it would be ideal that Kconfig itself defined Also, I spotted a off-by-one error, About testing
PSRAM being used for configuration data only.
First scenario
Results:
Second scenario
Results:
Third scenario
Results:
Fourth scenario
Results:
Further optimizations on port forwarder firmware would allow bigger numbers, but I think this is enough for now. |
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 #13866
Hi @rdgoprslv thanks for the contribution. The changes were merged in 48295d3 |
Any chance of a back port to 5.3?
|
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 #13866
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 #13866
Addresses #3840
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 auint8_t
.Since FD_SETSIZE is defined at tool level, a CMakeLists user definition is needed in cases above 64 (the default value).