You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aziztitu
changed the title
connect() gets stuck with message "about to open data connection"
listDirectoryContent() gets stuck with message "about to open data connection"
Jan 17, 2021
Upon further inspection at the source code, I think I've figured out the issue.
This bug occurs when the current directory in the FTP Server is empty. This following loop in directory.dart never exits if there is no file/directory in the current directory.
Describe the bug
The listDirectoryContent() method gets stuck indefinitely. If the debug is set to true, we can see this log:
And it gets stuck at this point. The listDirectoryContent() method never returns.
Code Snippet:
Expected behavior
listDirectoryContent() returns the directory content, or throws a proper error.
Platform:
Smartphone (when using Flutter):
FTP Server Software
The text was updated successfully, but these errors were encountered: