Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

Grant

Posts

1

Joined

Thu Jun 10, 2010 3:10 am

ServerWakeupInterval coding help

by Grant » Thu Jun 10, 2010 3:28 am

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;
}
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: ServerWakeupInterval coding help

by support2 » Thu Jun 10, 2010 5:03 pm

You need to use ExFTPConnection or SecureFTPConnection (in .

Look at the KeepAliveTransfer and KeepAlivePeriodSecs properties.

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron