Skip to content
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

Any event triggered to catch the disconnect events of connected FtpClient? #727

Closed
TahaBerkay opened this issue May 29, 2021 · 2 comments
Closed

Comments

@TahaBerkay
Copy link

TahaBerkay commented May 29, 2021

I'm using hosted service (IHostedService) to keep the connection always open in order to avoid connection overhead.
(e.g. call FtpClient.Connect at StartAsync method only and FtpClient.Disconnect at StopAsync)
And the FTP operations are done in the same connection during the application lifetime.

Is there any event fired if the FTP server disconnects or gets down? So, I could try to reconnect periodically to get the connection back alive.

@TahaBerkay TahaBerkay changed the title Any event triggered to catch the disconnect events of FtpClient? Any event triggered to catch the disconnect events of connected FtpClient? May 29, 2021
@robinrodricks
Copy link
Owner

No event at present. You can try to implement it by checking in the stream classes, which implement the actual socket to the server.

@robinrodricks
Copy link
Owner

Added to the bucket list. We will pick this up as and when we have free time. Comment on this issue if you want us to prioritize it. Thanks!

@robinrodricks robinrodricks closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants