Hello,
Im 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
Hello,
Im testing HttpClient4, and Ive 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
Hello,
To set a retryHandler:
this.objHttp.setHttpRequestRetryHandler(new
DefaultHttpRequestRetryHandler(retryHttp, false));
But if I want to disable this retry handler (because the user doesnt want
to retry anything), how can I do this?
Thanks,
Joan.
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
);
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
Hello,
Im migrating code from httpclient3 to httpcllient4, and there are some
things I do with httpclient3 that Im 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
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
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
: 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
Hello,
Ive a little question about cookies.
Ive 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
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
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
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
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
101 - 114 of 114 matches
Mail list logo