Skip to content

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

@xiaosaiyi

Description

@xiaosaiyi

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()}');
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions