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

speed

no avatar
User

ewan

speed

by ewan » Thu Apr 22, 2004 2:57 am

I've just been trying this out in a simple Windows Forms app, and my code is running very slowly. The code is basically:

ftp = new FTPClient("server");
ftp.ConnectMode = FTPConnectMode.PASV;
ftp.Login("username","password");

DateTime t2 = DateTime.Now;
ftp.Chdir(rootDir);
DateTime t3 = DateTime.Now;
string[] dir = ftp.Dir();
dir = ftp.Dir();
DateTime t4 = DateTime.Now;

From looking at the values of t2-t4, the login and chdir(folder) command both seem to be zippy, but a dir() command is taking 8-9 seconds. Am I doing something wrong? Are there API tweaks I'm missing? Regular FTP clients are running at normal speed.

Thanks.
no avatar
User

bruce

Re: speed

by bruce » Thu Apr 22, 2004 5:08 pm

no avatar
User

ewan

solution

by ewan » Fri Apr 23, 2004 9:02 pm

no avatar
User

bruce

Re: solution

by bruce » Fri Apr 23, 2004 10:22 pm

no avatar
User

support

Re: solution

by support » Fri May 14, 2004 7:11 am


Who is online

Users browsing this forum: No registered users and 30 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign