-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error 24: Too many open files #31
Comments
Interesting, never tested this before! I'll give you a bit of background and some facts, maybe we can track this one down together:
My guess is that in your case you also have a lot of uftpd child processes. Possibly the children are not "reaped", or their client socket is not closed properly. It could of course be something else, but let's start there. |
Thanks for your fast reply. I have added my test scripts:
ftp_get_testfile.sh:
ftp_get_testfile:
Test script output (when ok):
BR |
Thanks for the scripts! I've reproduced the problem now. Looking into it. |
There, fixed! Thank you for the report and the really great scripts to help reproduce this! :) I'll see about getting a v2.13 out soonish |
v2.13 released now |
Thank you for fixing this so quickly. It’s greatly appreciated! |
Hi
I have cross compiled the uftpd for use on my embedded arm platform, and I have started doing some stress tests. The test script repeatedly:
When the script reaches approximately round 1015 the uftpd server generates an error message:
Failed opening data server socket. Error 24: Too many open files
and eventually hangs with a never ending:
Failed accepting FTP client connection. Error 24: Too many open files
My system has a limit on 1024 open files.
I have not been able to figure out why this happens, but I did add some extra debug output around fopen and fclose:
The fopen and fclose seems to work, but the fileno keeps increasing util it reaches the 1k limit.
uftpd version 2.12. Options used:
/sbin/uftpd_terminal_compile_org/uftpd -n -l debug -o ftp=9013,tftp=0 /mnt/ramdisk
Any ideas on how to fix this?
BR
AD
From the debug output (original code) when it starts to fail:
The text was updated successfully, but these errors were encountered: