KBps/Thread speed limit not working

The KBps/Thread in the Global Queue does not appear to work. This bug is present in 1.5.988.2x including the latest 1.5.988.51.

Steps
1. Start a download like Opera in the "Global Queue". The URL I tried is ftp://mirror.etf.bg.ac.yu/opera/win/802 ... nen802.exe .
Download occurs normally if you set speed per thread at 0 KBps/thread.

2. Set the download rate at 1 KBps/thread. Stop and Resume the download. Or even start the download from the beginning.

3. Does the download continue? Mine gets stuck at 0 bytes. On stopping and resuming, the downloaded bytes are up by couple of thousand bytes. WinDump shows that transfer is occuring for a while atleast. About 40K - 70K is transferred from the server to the passive port. Below is the last few lines of WinDump.

WinDump
Server > MyComp 66609:68057(1448) ack 1 win 5480
MyComp > Server ack 68057 win 2896
Server > MyComp 68057:69505(1448) ack 1 win 5480
MyComp > Server ack 69505 win 1448
Server > MyComp 69505:70953(1448) ack 1 win 5480
MyComp > Server ack 70953 win 0

Server > MyComp ack 1 win 5480
MyComp > Server ack 70953 win 0

Timeout -> SmartFTP starts with next thread.


Resolution
The bug ceases to occur when I set the speed limit to above 25 KBps or higher (27 KBps definitely works). Sometimes 25 works. But setting it to 1 definitely doesn't work.

Notes:
1. My Default Receive Window is 32K (TCPWindowSize) in multiples of 1448 (MTU).
2. I use Passive FTP.
3. My Phone Line (Download) Bandwidth is 20-30 kbps (2-4 KB/s).
4. Threads: 1
5. Tried a file on a different FTP server - bug occurs.
6. Tried keeping two files in Global Queue - bug occurs.



+- System -----------------------------
Microsoft Windows XP Professional
Service Pack 2 (Build 2600)

+- SmartFTP ---------------------------
Version : 1.5.988.51
Time Stamp : 2005-08-03 00:29:54

+- Application DLL --------------------
Controls.dll : 1.6.988.51
sfFTPLib.dll : 1.5.3.2
SmartHook.dll : 1.0.2.1

+- Language ---------------------------
SmartFTP.exe : 1.5.988.51

Hello ...

I cannot reproduce the problem. Sorry. Can you reproduce it an any other system?

Does anybody else have similiar problems with the speed limit?

-Mat

Could someone try the above using a dial-up/modem connection? Try connecting at 28.8 kbps.

I experienced similar behaviour with the global download speed limit. NetLimiter (which I happened to have started for other purposes) showed intermittent download traffic: a few 100 kBs were downloaded at the limited speed, then complete stop, then a few 100 kBs again, then complete stop. This seemed to be quite periodic, i.e. the length of the idle phase seemed to be approx. constant (about 0.5 or 1.5 minutes - I forgot). Clearing the limit (setting it to 0) had a near-instant effect of eliminating the interruptions, setting it again brought them back. I use past tense because I haven't been able to reproduce this phenomenon with version 1.5.988.55 which I currently use. That doesn't necessarily mean that this bug was cured, because although it was quite a frequent behaviour, I haven't found a way to provoke it with earlier versions either.

The connection was type ADSL, 140kB/s down. I think the bug was occuring more frequently with lower than with higher (like 110-130kB/s) limits. Maybe because the higher limits were less frequently reached???

I've got the same problem with the Global queue using a broadband Internet connection (512Kb).

When I set to 30-35KBps/thread, the download start for a while (200kb) and after stuck at 0kb for all the other files....

I got the same issue for different FTP server (private, so I can't give the IP).

I'm using FTP 1.5 build 989 (I'll try with the new version)

I tried with the new version (1.5 build 990) but it still the same:
Here's a copy of the log :

    Resolving host name "xxxxxxx.dyndns.org"



    Connecting to 84.100.191.xxx Port: 21



    Connected to xxxxxxx.dyndns.org.



220 Serv-U FTP Server v6.0 for WinSock ready...



    USER xxxxxxx



331 User name okay, need password.



    PASS (hidden)



230 User logged in, proceed.



    SYST



215 UNIX Type: L8



    FEAT



211-Extension supported



 CLNT



 MDTM



 MDTM YYYYMMDDHHMMSS[+-TZ];filename



 SIZE



 SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG



 REST STREAM



 XCRC filename;start;end



 MODE Z



211 End



    Detected Server Software: Serv-U 5.x/6.x



    CLNT SmartFTP 1.5.990



200 Noted.



    PWD



257 "/e:" is current directory.



    SIZE Creative Sound Blaster Audigy LS Users Guide Francais.chm



213 254169



    TYPE I



200 Type set to I.



    PASV



227 Entering Passive Mode (84,100,191,128,12,110)



    Opening data connection to 84.100.191.128 Port: 3182



    RETR Creative Sound Blaster Audigy LS Users Guide Francais.chm



150 Opening BINARY mode data connection for Creative Sound Blaster Audigy LS Users Guide Francais.chm (254169 Bytes).



    Transfer Timeout (20s). Closing data connection.



    7200 bytes transferred. (345 bytes/s) (00:00:20)



426 Data connection closed, file transfer Creative Sound Blaster Audigy LS Users Guide Francais.chm aborted.




Hope that's help...

BTW, I'm using the global queue. I set 2 threads and 35 for speed limit...

This behavior appends for big (>1Gb) and small (250kb).

Good luck

What OS are you running?

It only happens if you set the speed limit?

-Mat

Hi,

I also seen this problem when I change the number of threads.

Here is the system log

Ben

+- System -----------------------------
Microsoft Windows XP Professional
Service Pack 2 (Build 2600)

CPU Speed : 2806 MHz
Total Memory : 2096620 KB
Free Memory : 1312140 KB

+- SmartFTP ---------------------------
Version : 1.5.990.2
Time Stamp : 2005-08-25 04:11:02

+- Application DLL --------------------
Controls.dll : 1.6.990.2
sfFTPLib.dll : 1.5.5.0
SmartHook.dll : 1.0.2.1

+- Language ---------------------------
SmartFTP.exe : 1.5.990.2

+- System DLL -------------------------
shell32.dll : 6.00.2900.2578 (xpsp_sp2_gdr.041130-1729)
shlwapi.dll : 6.00.2900.2573 (xpsp_sp2_gdr.041130-1729)
comctl32.dll : 6.0 (xpsp_sp2_rtm.040803-2158)
riched20.dll : 5.30.23.1221
schannel.dll : 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)

+- Internet Explorer ------------------
Version : 6.0.2900.2180

+- Winsock ----------------------------
Winsock : 2.2