-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
Crashing host process on socket timeout #1690
Comments
I will see if the upgrade to 52.0.0 fares better. I can see that the close sequence was updated in the new version. I think there is still some logic related to handling the close, because a cancelled (outer) token will cause a different cancellation error than what is intended (will throw from within the close call, not the But at least the call chain is now preserved, and the exception should bubble to the caller. |
Yes, please check this with V52. As we should be ending up here: and I would be interested in how that "fares". |
It appears to still happen with 52.0.0, but I have not collected enough details yet: |
Ok, this one will be difficult. Stack trace might be helpful as a starter. I wonder about the exact order of events and methods called on this timeout. Oh, and we do now have some good logging in there also, so perhaps if you can get logs? |
FTP Server OS: Linux
FTP Server Type: Unknown
Client Computer OS: Linux
FluentFTP Version: 50.1.0
Framework: .NET8
During a timeout it looks like the shutdown process causes an unhandled exception.
I think the cause is this line:
https://github.com/robinrodricks/FluentFTP/blob/master/FluentFTP/Streams/FtpSocketStream.cs#L560
In here it will attempt to close the connection due to a timeout, but if the socket is already faulty, the close call will fail as well.
Since this happens in the token callback, the uncaught exception has nowhere to go.
Logs :
The text was updated successfully, but these errors were encountered: