hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Bouhier (MC/ECM)" <Christophe.Bouh...@ericsson.com>
Subject RE: Bandwidth throttling
Date Wed, 31 Aug 2005 12:30:26 GMT
Hey thanks for this! Do you know if any of these implementations are hooks (custom sockets)
to HttpClient
like Roland suggests? 

Cheers / Christophe

> -----Original Message-----
> From: Benjamin Chevillon [mailto:bchevill.ml@gmail.com]
> Sent: woensdag 31 augustus 2005 9:43
> To: HttpClient User Discussion
> Subject: Re: Bandwidth throttling
> 
> 
> 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&btn
G=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


---------------------------------------------------------------------
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