Re: Pool running out of connections

2008-07-29 Thread Oleg Kalnichevski
Joan Balagueró wrote: Hello, We're using IdleConnectionTimeoutThread. The code is the following: this.objHttp = new HttpClient(new MultiThreadedHttpConnectionManager()); this.ictt = new IdleConnectionTimeoutThread(); this.ictt.addConnectionManager(this.objHttp.getHttpConnectionManager());

RE: Pool running out of connections

2008-07-29 Thread Joan Balagueró
Hello, Then, I understand that idle connections are in ESTABLISHED state. I could try: this.ictt.setTimeoutInterval(1000); this.ictt.setConnectionTimeout(1); This should eliminate all established connections every second. As I told you our problem is that, with our app, we don't know why

Re: DIGEST and BASIC authentication API

2008-07-29 Thread Oleg Kalnichevski
Subhash Chandran wrote: Hi, I recently moved RESTClient ( http://code.google.com/p/rest-client/ ) from Commons HTTP to HTTP client. Previously I was using BASIC and DIGEST authentication using the Commons API. Now the example provided:

Re: Specifying HTTP version in HTTP Client (without using HttpProtocolParams's static methods)

2008-07-29 Thread Oleg Kalnichevski
Subhash Chandran wrote: Hi. How do I specify the HTTP version to use in HTTP Client? params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, version); The example in the site uses static methods in: org.apache.http.params.HttpProtocolParams I do not want to control this parameter

Re: Problem disabling BASIC authentication

2008-07-29 Thread Oleg Kalnichevski
Sabarivasan Viswanathan wrote: Hello, I am having trouble disabling every scheme except DIGEST and sending credentials preemptively. What I see when I use Wireshark is that the first HTTP request sends credentials in BASIC mode. The server sends a 401 challenge after which the client sends the

Re: Pool running out of connections

2008-07-29 Thread Oleg Kalnichevski
Joan Balagueró wrote: Hello, Then, I understand that idle connections are in ESTABLISHED state. I could try: this.ictt.setTimeoutInterval(1000); this.ictt.setConnectionTimeout(1); This should eliminate all established connections every second. Yes, it should As I told you our problem

Re: Problem disabling BASIC authentication

2008-07-29 Thread Sabarivasan Viswanathan
Thanks as always to a prompt response that answers all my questions. Sabari On Tue, Jul 29, 2008 at 5:14 AM, Oleg Kalnichevski [EMAIL PROTECTED] wrote: Sabarivasan Viswanathan wrote: Hello, I am having trouble disabling every scheme except DIGEST and sending credentials preemptively.