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:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]>:
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to