You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Techie India <it...@gmail.com> on 2007/09/07 12:03:07 UTC

How to set connection properties in httpClient

Hi,

Can you please tell me how i will set the properties for
1)StaleConnection
2)Max. Total Connection
3)Max. Connection per host


in HttpClient Module.

Thanks.

Re: core release schedule (was: Re: How to set connection properties in httpClient)

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2007-09-08 at 14:06 +0200, Roland Weber wrote:
> Oleg Kalnichevski wrote:
> > 
> > There is a pretty nasty bug in NIOSSL (HTTPCORE-114), which we should
> > issue a fix for. I suggest we release ALPHA6 by the end of the month,
> > followed by BETA1 in November.
> 
> I'm fine with alpha6 this month. I should be able to finish
> all pending API changes by then. But I would still prefer to
> see two releases of client compiling against one release of
> core before going beta there.
> 

Do you anticipate any changes in Core or Client that may require some
major API overhaul? If not, I would prefer to see the API freeze rather
sooner then later. Anyways, let us see where we stand in November.

Cheers

Oleg


> cheers,
>   Roland
> 
> ---------------------------------------------------------------------
> 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


core release schedule (was: Re: How to set connection properties in httpClient)

Posted by Roland Weber <os...@dubioso.net>.
Oleg Kalnichevski wrote:
> 
> There is a pretty nasty bug in NIOSSL (HTTPCORE-114), which we should
> issue a fix for. I suggest we release ALPHA6 by the end of the month,
> followed by BETA1 in November.

I'm fine with alpha6 this month. I should be able to finish
all pending API changes by then. But I would still prefer to
see two releases of client compiling against one release of
core before going beta there.

cheers,
  Roland

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


Re: How to set connection properties in httpClient

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2007-09-08 at 13:49 +0200, Roland Weber wrote:
> Oleg Kalnichevski wrote:
> > 
> > HttpCore 4.0 BETA1 is likely to be released in November, but I do not
> > think we will manage to freeze HttpClient 4.0 API before March 2008 the
> > earliest. 
> 
> You want to push through two releases of core until November?
> I thought we might have alpha6 [1] maybe in October, followed
> by beta1 in January.
> 

Roland,

There is a pretty nasty bug in NIOSSL (HTTPCORE-114), which we should
issue a fix for. I suggest we release ALPHA6 by the end of the month,
followed by BETA1 in November.

Oleg


> cheers,
>   Roland
> 
> 
> [1]
> http://mail-archives.apache.org/mod_mbox/jakarta-httpcomponents-dev/200707.mbox/%3c46A3208C.1050405@apache.org%3e
> 
> ---------------------------------------------------------------------
> 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


Re: How to set connection properties in httpClient

Posted by Roland Weber <os...@dubioso.net>.
Oleg Kalnichevski wrote:
> 
> HttpCore 4.0 BETA1 is likely to be released in November, but I do not
> think we will manage to freeze HttpClient 4.0 API before March 2008 the
> earliest. 

You want to push through two releases of core until November?
I thought we might have alpha6 [1] maybe in October, followed
by beta1 in January.

cheers,
  Roland


[1]
http://mail-archives.apache.org/mod_mbox/jakarta-httpcomponents-dev/200707.mbox/%3c46A3208C.1050405@apache.org%3e

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


Re: How to set connection properties in httpClient

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2007-09-08 at 02:21 -0500, Techie India wrote:
> 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?
> 

No, it will not. It is just not humanly possible given the fact we all
are working on HttpComponents in our spare time.

HttpCore 4.0 BETA1 is likely to be released in November, but I do not
think we will manage to freeze HttpClient 4.0 API before March 2008 the
earliest. 

Oleg

> Thanks.
> 
> 
> On 9/7/07, Oleg Kalnichevski <ol...@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
> >
> >


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


Re: How to set connection properties in httpClient

Posted by Techie India <it...@gmail.com>.
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 <ol...@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
>
>

Re: How to set connection properties in httpClient

Posted by Oleg Kalnichevski <ol...@apache.org>.
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


Re: How to set connection properties in httpClient

Posted by Techie India <it...@gmail.com>.
4.0a1

On 9/7/07, Oleg Kalnichevski <ol...@apache.org> wrote:
>
> 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
> >
> >
> > 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
>
>

Re: How to set connection properties in httpClient

Posted by Oleg Kalnichevski <ol...@apache.org>.
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
> 
> 
> 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