Re: PutFile and Resume - WeOnlyDo Discussion board

Re: PutFile and Resume (General questions)

by r0m1k, Friday, December 14, 2007, 10:21 (5950 days ago) @ wodGrof

Hi wodGrof,
Hmm...seems little bit better, but not at all.
But max transfer rate work only if I set it before PutFile/GetFile:
[code]
objFTP.BufferSize = 100*1024/4
objFTP.Resume = 0
objFTP.Blocking = 1

objFTP.Connect

objFTP.MaxTransferRate = 100*1024
objFTP.PutFile C:\Documents and Settings\roman\Virtual Disks\testHDD.iso , testHDD.iso
WScript.Echo (objFTP.TransferRate/1024)

'objFTP.MaxTransferRate = 100*1024
objFTP.GetFile C:\Documents and Settings\roman\Virtual Disks\testHDD_.iso , testHDD_.iso
WScript.Echo (objFTP.TransferRate/1024)

objFTP.Disconnect
[/code]
In this case after GetFile transfer rate is much bigger than MaxTransferRate.
If I uncomment string GetFile download with MaxTransferRate speed.
Same I get in c++ example application.

Bwt, in my complicated multithreaded application [:wink:]
when uploading MaxTransferRate don't work completely ( SFTP only of course ), and this is very strange [:sad:].
While download work as expect ( same for FTP d/u ).
May be it gone when MaxTransferRate error will be fixed.


Thanks, Roman


Complete thread: