Closed twodogmbh closed 4 years ago
I hope you could reproduce the issue with your new unit test. Otherwise I can provide further information if required. Do you already have a possible release date with this issue fixed, as this is quite a cumbersome issue for us. Thanks.
I could reproduce the issue, but I don't have an idea (yet) how to fix this problem.
Progress report: It's not a TCP issue. It's a problem with the FTP protocol where the data gets sent before the 150 Opening data connection.
response.
EDIT: Two possible solutions:
I believe that solution 2 might be the correct solution.
3.1.1 is published and should be available soon (after the validation on nuget.org). The unit test works now and your problem is (hopefully) fixed.
In the release 3.1.1 the exception does not occur anymore. Thank you very much for the quick response!
When multiple connections are opened in parallel, the client terminates with the following exception:
This occurs with the default FTP server configuration as described in the example: https://github.com/FubarDevelopment/FtpServer
The issue can be reproduced with the following test:
When the KeepAlive property is set to "true" the test passes.
It seems like, when the connection is closed, the server terminates the connection too fast, before the response is sent.
For the ListDirectory command it's not a big issue, as we could just re-try, but for the DeleteFile command it's not that easy as the second re-try then returns error code 503.
The response.StatusProperty contains "250 Closing data connection."