NO_HTTP_RESPONSE_EXCEPTION

2009-02-05 Thread Joan Balagueró
Hello, I’m sending requests to one server using HttpClient3 and HttpClient4. HttpClient3 works well, but HttpClient4 fails randomly with an ‘HttpNoResponseException’. This is the trace: org.apache.http.NoHttpResponseException: The target server failed to respond at

MAX CONNECTIONS

2009-02-05 Thread Joan Balagueró
Hello, I’m testing HttpClient4, and I’ve found the following problem. I set MaxTotalConnections to Integer.MAX_VALUE: ConnManagerParams.setMaxTotalConnections(this.objHttpParams, Integer.MAX_VALUE); But when I send 5 simultaneous requests, I get 2 “maxConnections” errors. The

HTTP RETRY HANDLER

2009-02-02 Thread Joan Balagueró
Hello, To set a retryHandler: this.objHttp.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(retryHttp, false)); But if I want to disable this retry handler (because the user doesn’t want to retry anything), how can I do this? Thanks, Joan.

HTTPCLIENT4 EXCEPTIONS

2009-01-31 Thread Joan Balagueró
Hello, Just a question about exceptions sending http requests. If I set a very low value to HttpConnectionParams.setConnectionTimeout(this.objHttpParams, connectionTimeout), httpclient throws “SocketTimeoutException” with the message “connect timed out”, but I expected to receive a

SOME QUESTIONS ABOUT HTTPCLIENT 4

2009-01-30 Thread Joan Balagueró
); this.objHttp.setCookieSpecs(null); 5. Receive a null HttpEntity means that the server sent an empty response? Thanks for your time. JOAN BALAGUERÓ GRUPO VENTUS C/ Balmes 195, 4º 4ª // 08006 BCN Telf.: 902 43 05 75 // Fax: 93 292 01 49 http://www.grupoventus.com www.grupoventus.com

TRANSLATING CODE FROM HTTPCLIENT3 TO HTTPCLIENT4

2009-01-28 Thread Joan Balagueró
Hello, I’m migrating code from httpclient3 to httpcllient4, and there are some things I do with httpclient3 that I’m not sure how to do with httpclient4. I think my problems are in how to enable/disable cookies at connection manager level, and how to manage idle connections

RE: Pool running out of connections

2008-07-29 Thread Joan Balagueró
out of connections 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

RE: Pool running out of connections

2008-07-23 Thread Joan Balagueró
in advance, Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:[EMAIL PROTECTED] Enviado el: viernes, 18 de julio de 2008 0:06 Para: HttpClient User Discussion Asunto: RE: Pool running out of connections On Thu, 2008-07-17 at 17:41 +0200, Joan Balagueró wrote: Hello, Thanks for your

RE: Pool running out of connections

2008-07-17 Thread Joan Balagueró
: HttpClient User Discussion Asunto: Re: Pool running out of connections On Wed, 2008-07-16 at 09:03 +0200, Joan Balagueró wrote: Hello, We have developed software that uses HttpClient 3.1. It has been working for 2 months. Recently though, we have been getting 'Maximum number

QUESTION ABOUT COOKIES

2008-03-05 Thread Joan Balagueró
Hello, I’ve a little question about cookies. I’ve a MultiThreadedHttpConnectionManager, and I get an HttpClient instance from it. This httpclient object IS SHARED by all threads of my servlet (it means, I only have 1 instance of httpclient). I set the RFC-2109 in this way: HttpClient

RE: Question About Cookies

2008-03-05 Thread Joan Balagueró
Hello, Thanks for your response. Now I know how to send a cookie just related to one thread. But how to receive a cookie from my remote server? I was using : Cookie[] auxCookies = objHttp.getState().getCookies(); Now I know this is incorrect. I suppose that I must get cookies from the Post

RE: QUESTION ABOUT MultiThreadedHttpConnectionManager

2007-03-29 Thread Joan Balagueró
Hello, Finally I've decided to have just 1 instance of MultiThreadedHttpConnectionManager, that is used for N instances of HttpClient. The maxConnections and setStaleCheck depends on MultiThreadedHttpConnectionManager, but the connection and response timeout and cookie policy are different for

RE: PROBLEM WITH setMaxTotalConnections

2007-03-26 Thread Joan Balagueró
WITH setMaxTotalConnections On Mon, 2007-03-26 at 15:39 +0200, Joan Balagueró wrote: Hello (again), I write a small program to test the maxTotalConnections. It's an application with a static httpClient (multithreaded). The main program inits this variable and starts 20 threads that use

RE: PROBLEM WITH setMaxTotalConnections

2007-03-23 Thread Joan Balagueró
there will be 10 servlet instances? It looks like each has its own connection manager ... On 23/03/07, Joan Balagueró [EMAIL PROTECTED] wrote: Hi, I'm trying to limit the total number of http connections in my httpclient instance. I'm using a multithreaded http connection

<    1   2