Skip to content
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 of "Too many open files" and crashed #51

Open
xiaosaiyi opened this issue Dec 9, 2024 · 0 comments
Open

error of "Too many open files" and crashed #51

xiaosaiyi opened this issue Dec 9, 2024 · 0 comments

Comments

@xiaosaiyi
Copy link

After approximately 35,000 consecutive uploads, the program reported an error of "Too many open files" and then crashed on Android device.The problem exists in both version 2.0.7 and 2.0.5, and I have not tried other versions.

test code :

for (int i = 0; i < 40000;i++) {
try {
print('start connect i:$i');
await _ftpConnect.connect();
print('start upload i:$i');
await _ftpConnect.uploadFile(file);
print('upload finished i:$i');
await _ftpConnect.disconnect();
} catch (e) {
print(' i:$i Error: ${e.toString()}');
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant