HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Rate limiter does not seem to work with DSL
Author: Xavier Roche
Date: 08/26/2001 10:31
 
> I'm trying to make use of the bandwidth limiter (-An 
> option where n = # KB/sec).  I've got a DSL 
> connection, and it seems that this function does not 
> have any effect on the transfer rate ...
> I've also tried -A200. I've also tried it at the end 
> of the command sequence such as 
> httrack -g filename -O directory -A200

The position of options is not important

> Is there some reason that this function should not 
> work with DSL?  Does the -A option just make the 

Well, the bw limiter is really BASIC and therefore not 
very efficient:

void HTS_TOTAL_RECV_CHECK(int var) {
  if (HTS_STAT.HTS_TOTAL_RECV_STATE) { 
    if (HTS_STAT.HTS_TOTAL_RECV_STATE==3) { 
      var = min(var,32); 
      Sleep(250); 
    } else if (HTS_STAT.HTS_TOTAL_RECV_STATE==2) { 
      var = min(var,256); 
      Sleep(100); 
    } else { 
      var/=2; 
      if (var<=0) var=1; 
      Sleep(50); 
    } 
  }
}

This small routines is the current bw limiter, you can 
easily gues that this isn't sufficient for fast pipes. 
I will improve this soon, by using the realtime 
bandwidth estimation, and by using a more accurate 
system!
 
Reply Create subthread


All articles

Subject Author Date
How hard is the transfer rate limiter?

07/23/2001 06:09
Re: How hard is the transfer rate limiter?

07/23/2001 16:22
Rate limiter does not seem to work with DSL

08/20/2001 04:26
Re: Rate limiter does not seem to work with DSL

08/26/2001 10:31
Re: How hard is the transfer rate limiter?

09/25/2001 19:04




7

Created with FORUM 2.0.11