Jump to content

FTP upload much slower than ftp client


Recommended Posts

Hi,

I have been contacted by a handful of people who use my auto speed tester app who are having trouble with the upload speed testing.

It seems that anyone with a faster than 2 to 4 Mb/s upload speed is showing that there is a discrepancy between the AI FTP upload commands and other FTP clients.

If i do a bog standard _FTP_FilePut() with AI the max throughput it gets is approx 3Mb/s but when i upload the same local file to the same server with filezilla it gets a throughput of over 14Mb/s ?

It acts in the same way if i use 'InternetWriteFile' as well

Iv been really stumped with all this, iv had several people on fiber comment on the same problem they can only get a max of 4Mb/s upload speed using AI coded _FTP_FilePut() but with filezilla and other ftp clients they can more or less max out there upload streams.

the testing code iv been using to test the AI throughput is below, can anyone see what iv got wrong or why it should act this way ?

$Open = _FTP_Open('MyFTP Contr')
$Conn = _FTP_Connect($Open, $FTP_Default_Server, $FTP_default_user, $FTP_default_pw)
If @error Then
_FTP_Close($Open)
MsgBox(0, "UPload Test", "failed connect")
Exit
EndIf
_FTP_DirSetCurrent($Conn, "Up_testing")
If @error Then
_FTP_Close($Open)
MsgBox(0, "UPload Test", "failed Set Dir")
Exit
EndIf
_FTP_FilePut($Conn, $s_LocalFile, $FTP_putFileName)
If @error Then
_FTP_Close($Open)
MsgBox(0, "UPload Test", "failed put")
Exit
EndIf

I had thought about testing this with a C++ script but in the end I assume both AI and C++ would be using the winAPI anyhow so i dont think that would make any difference.

Edited by JackDinn

Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...