-
Notifications
You must be signed in to change notification settings - Fork 11
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
[RSDK-9213] restart on fd error #351
base: main
Are you sure you want to change the base?
Conversation
The ticket says that we should either raise the fd limit, or restart when out of fds.
|
There is an option in sdkconfig, however we don't appear to be setting it yet and I don't see any sane default set in the documentation, might need to dive into source. We could choose to set it, but we would need to make sure we do that in all the sdkconfigs and ensure whoever uses our ffi has these settings somehow (maybe an option in esp-idf component options). I didn't see any direct way to set behavior when fds are exhausted As for handling outside of signaling:
To answer the second question in your second point better, I believe this prevents incoming connections from succeeding, though I've only encountered this particular error once live. I can try setting the sdkconfig with a low limit to observe the error better and see what the implications are. UPDATE: looking at esp-idf, the default is 0 (no limit). |
I don't think that configuration parameter controls the number of FDs - I think it is specifically about protecting FAT files from corruption due to simultaneous operations. |
@mattjperez - I suspect the limit we are hitting may be https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig-reference.html#config-lwip-max-sockets. Have you been able to create a repro for https://viam.atlassian.net/browse/RSDK-9213? If not, could you please try to find one? Maybe try increasing the max connections and then instantiate several clients. And then you could try rebuilding with a higher value for |
No description provided.