Discuss the FTP protocol, secure FTP, FTP over SSH and FTP over SSL.
no avatar
User

stevensrf1

Posts

1

Joined

Sun Oct 14, 2012 11:38 pm

Not detecting when server closes FTP Connection

by stevensrf1 » Sun Oct 14, 2012 11:49 pm

I am not getting notification ftppro when the server closes the FTP connection.
I thought connecting to both the FTPConnectionEventHandler Closing, FTPConnectionEventHandler Closed, and FTPMessageHandler ReplyReceived events would notify but it does not.
I did not see the FTPMessageHandler ReplyReceived receieved any notification that the server closed the connection.
Can some one tell me what even I should register for to be notified when the server closes the connection?
You can email me at stevensrf1@inbox.com directly for a response.

/// <summary>Occurs when the component is about to close its connection to the server.</summary>
[Category("Connection")]
[Description("Occurs when the component is about to close its connection to the server.")]
public virtual event FTPConnectionEventHandler Closing;

/// <summary>Occurs when the component has closed its connection to the server.</summary>
[Category("Connection")]
[Description("Occurs when the component has closed its connection to the server.")]
public virtual event FTPConnectionEventHandler Closed;

[Category("Commands")]
[Description("Occurs when a reply is received from the server.")]
public virtual event FTPMessageHandler ReplyReceived
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Mon Oct 15, 2012 8:09 pm

Those events will only be triggered when Close is actually called. Is Close being called? They won't trigger if the connection just drops out.

- Hans (EnterpriseDT)

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron