Speed reporting in Intercept...

Giganews Newsgroups
Subject: Speed reporting in Intercept...
Posted by:  Dennis (antispam@antispam.com)
Date: Wed, 06 Sep 2006

*Sigh* okay.. I give up.  Anyone know a good way of reporting the speed
per second when using intercept throttler?
I'm using Indy 10.1.5 with Windows XP SP2, Delphi 7.

The intercept throttler pauses depending on the buffersize.  So lets say
32KB buffer, and you want 4KB/s, the delay in milliseconds would be: 8000
(or 8 seconds).  That's correct but, when having a timer check how much
data was moved on that interval, it will report: 0, 0, 0, 0, 0, 0, 0,
32KB/s

Using the throttler it pauses before it sends the entire buffered data,
when the client could be processing those 4KB/s ..

Possible options:

  - I could limit the buffersize if < 32KB/s (or some size) to match up
with the rate per second.  Using this approach would lose the effects of a
buffer.. But would it matter anyway if that small of rate was chosen
anyway?

  - Keep the buffers, but use average speed per second display (would
rather not, it's a professional application) and would rather have the
client (that's connecting to the server) get all the necessary data per
second.

  - Through the intercept calls, send the data and split the chunks as
necessary on second boundaries (without giving the original IOHandler
no/nil data)

  - Write my own IOHandler

Anybody?

- Dennis

Replies