TIdInterceptThrottler problem

Giganews Newsgroups
Subject: TIdInterceptThrottler problem
Posted by:  Michael J. Leaver (spam@mjleaver.com)
Date: Wed, 15 Dec 2004

Hi, I'm using the TIdInterceptThrottler class (Indy 10) to try and limit
the bandwidth used by my FTP client. However, it doesn't seem to be working.

I create the FTP client object then set the throttler as follows:

    FTPLimit:=TIdInterceptThrottler.Create(AOwner);
    FTPClient.IOHandler.Intercept:=FFTPLimit;
    FTPLimit.BitsPerSec:=8192; // 1K

When I transfer a 10MB file, it's only taking seconds to complete.

Suggestions?

Thanks

Replies