Skip to content

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

Closed as not planned

Description

@TahaBerkay

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.

Activity

  1. changed the title [-]Any event triggered to catch the disconnect events of FtpClient?[/-] [+]Any event triggered to catch the disconnect events of connected FtpClient?[/+] on May 29, 2021
  2. robinrodricks commented on May 29, 2021

    @robinrodricks
    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.

  3. robinrodricks commented on Sep 19, 2022

    @robinrodricks
    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址