Re: Limit the global TIdHttpServer bandwidth

Giganews Newsgroups
Subject: Re: Limit the global TIdHttpServer bandwidth
Posted by:  Remy Lebeau \(TeamB\) (
Date: Mon, 14 Apr 2008

"Thomas Bergerot" <> wrote in message

> I'd like to know how i can limit the GLOBAL bandwitdth of
> the server to a defined limit, so that whatever happens, the
> application will not occupy more than 80% of the global bandwidth ?
> Is it possible ?

Indy does not have anyting natively implemented for that.  You would have to
write your own throttling code.  Derive a new class from
TIdConnectionIntercept (and optionally a class from TIdServerIntercept).  In
the OnConnect event (or in an overridden TIdServerIntercept.Accept()
method), you can assign a new instance of your TIdConnectionIntercept class
to each client connection.  You can then do per-client throttling, and have
your TIdConnectionIntercept instance coordinate with each other as needed.



In response to

Limit the global TIdHttpServer bandwidth posted by Thomas Bergerot on Sat, 12 Apr 2008