hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Chevillon <bchevill...@gmail.com>
Subject Re: Bandwidth throttling
Date Wed, 31 Aug 2005 07:43:16 GMT
Hi Christophe,

Maybe you could plug or design an active queue, as explained in RFC
2309 (http://www.faqs.org/rfcs/rfc2309.html) or token bucket algorithm
(see the first result of
http://www.google.fr/search?hl=en&q=Java+bandwidth+limiter&btnG=Recherche+Google&meta=
).

Hope it will help,

Benjamin

2005/8/31, Roland Weber <ROLWEBER@de.ibm.com>:
> Hi Christophe,
> 
> > I wonder if there is any mechanism to tell HttpClient to limit the
> download
> > rate. (Bytes per second).
> 
> No, there is nothing built in. But you can supply your own
> ProtocolSocketFactory
> and implement bandwidth-limited sockets which will then be used by
> HttpClient.
> 
> Bandwidth throttling is not part of any HTTP related spec I've come
> across, and
> is therefore out of scope for the stock version of HttpClient. We could
> add
> something to the "contrib" section though, if someone has code to share.
> 
> hope that helps,
>   Roland
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message