hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Techie India" <ittechie.in...@gmail.com>
Subject Re: How to set connection properties in httpClient
Date Sat, 08 Sep 2007 07:21:47 GMT
Actually we are planning to replace  HttpClient 3.0 with the HttpClient 4.0,
and we are planning to do a beta release for this in the November.

So by this November  will HttpClient 4.0 be in a stable state?When will the
beta for HttpClient 4.0 is planned?

Thanks.


On 9/7/07, Oleg Kalnichevski <olegk@apache.org> wrote:
>
> On Fri, 2007-09-07 at 20:43 +0530, Techie India wrote:
> > 4.0a1
> >
>
> _BE_ _WARNED_: unlike HttpCore, HttpClient 4.0 is still in a very early
> stage of development. There will be a lot of API changes and code
> instability. Generally we discourage people from using it _unless_ they
> intend to contribute patches to the project or help us define the API.
>
>
> > > On Fri, 2007-09-07 at 15:33 +0530, Techie India wrote:
> > > > Hi,
> > > >
> > > > Can you please tell me how i will set the properties for
> > > > 1)StaleConnection
> > > > 2)Max. Total Connection
> > > > 3)Max. Connection per host
> > > >
>
>
> HttpParams params = new BasicHttpParams();
> HttpConnectionParams.setStaleCheckingEnabled(params, true);
> HttpConnectionManagerParams.setMaxTotalConnections(params, 200);
> HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(params, 20);
> DefaultHttpClient  httpclient = new DefaultHttpClient(params);
>
> Hope this helps
>
> Oleg
>
> > > >
> > > > in HttpClient Module.
> > > >
> > >
> > > What version, 4.0a1 or 3.1?
> > >
> > > Oleg
> > >
> > > > Thanks.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> httpcomponents-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > httpcomponents-dev-help@jakarta.apache.org
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> httpcomponents-dev-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message