Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.6k views
in .NET FTP by (120 points)
I am experiencing control port getting dropped on large file transfers (think over zealous firewall is dropping the idle port)
by setting ServerWakeupInterval to 10 seconds in the FTPClient Class constructor fixed the problem.

My question is, and maybe be a newbie c# coding question in general...

How do ( / Can) I set this property from instantiating the FTPConnection class?
I tried to sub class it (pls don't flame me if the terminology is wrong), I can access the property in FTPClient Class, buts does not appear to be same instance, when I step through the code to d/l a file, in SendServerWakeup() noOperationInterval = 0 aka disabled,

here is my attempt...

internal class ftpCore:EnterpriseDT.Net.Ftp.FTPConnection
{
EnterpriseDT.Net.Ftp.FTPConnection _ftpconn;

internal ftpCore()
{
_ftpconn = new FTPConnection();
ftpClient.ServerWakeupInterval = 10;
}

1 Answer

0 votes
by (162k points)
You need to use ExFTPConnection or SecureFTPConnection (in edtFTPnet/PRO).

Look at the KeepAliveTransfer and KeepAlivePeriodSecs properties.

Categories

...