-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
Incorrect directory listing on "Failed to connect to host" exception #723
Comments
I have the same problem in version 34.0.1. I think I found the problem in my case. Azure Web App have multiple IP's for the same host and the list always failed when the IP changed suddenly from one to another: Example:
I've Changed the code and tested and it's startted to work fine. |
Looks like the change in 34.0.2 had decreased the frequency of the issue but I am still sometimes seeing empty enumerable on calling GetListing() but a second attempt does retrieve the listing |
FTP OS: Windows
FTP Server: Azure Web App
Computer OS: Windows
FluentFTP Version: 34.0.0
When running a lot of operations I have found that sometimes the connection drops so a new IOException("Failed to connect to host.") is thrown on line 919 of FtpSocketStream.cs. That exception is then caught and ignored by line 608 of FtpClient_Listing.cs with the comment "// suppress all other types of exceptions". The result is that there is a silent failure and FluentFTP incorrectly returns that the directory contains no files.
The text was updated successfully, but these errors were encountered: