' correct?
Thanks,
Joan.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: sábado, 23 de
febrero de 2019 17:36
Para: HttpClient User Discussion
Asunto: Re: Thread named 'httpclient-main-1' not stopped when shutting down pool
On Fri, 2019-02-22 at 13:14 +0100, Joan
Hello,
When I shutdown my CloseableHttpAsyncClientinstance (that has set a
PoolingAsyncClientConnectionManager) a thread called httpclient-main-1
is not stopped and the following message is logged in tomcat log:
22-Feb-2019 13:00:59.326 ADVERTENCIA [localhost-startStop-1]
Hello,
I hope the last questions:
1. The validateAfterInactivity with a value of zero means no
validation?
2. Regarding the consume method, this is our implementation now:
@Override
public int consume(ByteBuffer src) throws IOException
{
while (src.hasRemaining())
, 10 de noviembre de 2018 19:30
Para: HttpClient User Discussion
Asunto: Re: RV: Migration from Async 4.1.3 to HttpClient 5
On Sat, 2018-11-10 at 18:02 +0100, Joan Balagueró - ventusproxy wrote:
> Hello Oleg,
>
> Sorry, but I think I'm going to need a bit more help to finish
>
Thanks ,
Joan.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: viernes, 9 de noviembre de 2018 15:31
Para: HttpClient User Discussion
Asunto: Re: RV: Migration from Async 4.1.3 to HttpClient 5
On Fri, 2018-11-09 at 15:19 +0100, Joan Balagueró wrote:
>
.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: viernes, 9 de noviembre de 2018 15:01
Para: HttpClient User Discussion
Asunto: Re: RV: Migration from Async 4.1.3 to HttpClient 5
On Fri, 2018-11-09 at 13:39 +0100, Joan Balagueró wrote:
> Thanks Oleg. One m
[mailto:ol...@apache.org]
Enviado el: jueves, 8 de noviembre de 2018 11:04
Para: HttpClient User Discussion
Asunto: Re: RV: Migration from Async 4.1.3 to HttpClient 5
On Wed, 2018-11-07 at 19:30 +0100, Joan Balagueró wrote:
> Hello Oleg,
>
> We are finishing the migration and have the last
Hello Oleg,
We are finishing the migration and have the last questions:
1. If a connection is kept-alive for 30s at second 0, and after 10s is reused,
this connection will die at second 30 or will survive until second 40?
2. Regarding the RetryHandler, below the method inherited from http 4.5
Oleg
>
> -Mensaje original-
> De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: domingo,
> 21 de octubre de 2018 13:11
> Para: HttpClient User Discussion
> Asunto: Re: Migration from Async 4.1.3 to HttpClient 5
>
> On Sat, 2018-10-20 at 20:23 +0200, Joan Balague
That would be great.
Thanks Oleg.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: domingo, 21 de octubre de 2018 13:11
Para: HttpClient User Discussion
Asunto: Re: Migration from Async 4.1.3 to HttpClient 5
On Sat, 2018-10-20 at 20:23 +0200, Joan Balagueró
+0200, Joan Balagueró wrote:
> Hello Oleg,
>
> I think it's a bit more complicated ... Let me explain it:
>
> - we have a pool with a response timeout of 15s
> - this pool is shared by 2 webservices, ws1 and ws2. Ws1 uses the
> pool's response timeout, but ws2 uses its own re
method).
Thanks,
Joan.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: sábado, 20 de octubre de 2018 18:17
Para: HttpClient User Discussion
Asunto: Re: Migration from Async 4.1.3 to HttpClient 5
On Fri, 2018-10-19 at 21:07 +0200, Joan Balagueró wrote:
> H
?
Thanks,
Joan.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: viernes, 19 de octubre de 2018 18:22
Para: HttpClient User Discussion
Asunto: Re: Migration from Async 4.1.3 to HttpClient 5
On Fri, 2018-10-19 at 18:01 +0200, Joan Balagueró wrote:
> Hi O
to HttpClient 5
On Fri, 2018-10-19 at 15:08 +0200, Joan Balagueró wrote:
> Hello,
>
>
>
> We are in the process of migrating to HttpClient5 from
> AsyncClient4.1.3, and we have some quiestions:
>
>
>
> 1. this.rc =
> RequestConfig.custom
Hello,
Just three more questions:
1. Is this the way to set a byte array to the RequestBuilders entity
(using a org.apache.http.nio.entity.NByteArrayEntity)?
org.apache.hc.client5.http.classic.methods.RequestBuilder.RequestBuilder rb
= RequestBuilder.post(uri);
Hello,
We are in the process of migrating to HttpClient5 from AsyncClient4.1.3, and
we have some quiestions:
1. this.rc = RequestConfig.custom().setAuthenticationEnabled(false).
setConnectionRequestTimeout(Timeout.ofMillis(this.poolTimeout)).
Hello,
This is the first time I need to use EntityUtils.toString(). My code is:
try
{
( . . . )
response = cluster.getHttpClient().performRequest(request);
String body = EntityUtils.toString(response.getEntity(),
GenericConstants.ENCODING_UTF8);
( . .
at 13:25 +0200, Joan Balagueró wrote:
> Thanks Oleg,
> I'm using the Async Client (4.1.2), what must I do to have it
> available? Just move to HttpCore 5.0 / HttpClient 5.0?
>
You have two options: upgrading to HttpClient 5.0 or building a custom
connection manager.
Oleg
>
: Re: Global lock in http pool
On Tue, 2018-07-10 at 12:01 +0200, Joan Balagueró wrote:
> Hello,
>
>
>
> We are using the async http client 4.1.2 in our app (an api Gateway).
> Several installations are managing more than 15.000 requests
> simultaneous opened, and now
Hello,
We are using the async http client 4.1.2 in our app (an api Gateway).
Several installations are managing more than 15.000 requests simultaneous
opened, and now we are in the process to optimize some code in the proxy.
Some time ago we could read a thread talking about the global
Hello,
We are having this error sporadically (once every week).
Additional information: java.net.UnknownHostException:
live.suppliers.gsisservices.com: System error
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native
Method)
at
to do with cert that is the point i am
trying to make... May be the file Store does not have the self signed
certificate added to it...
Hope it helps
Thanks
Hassan
On Thu, May 18, 2017 at 2:48 PM, Joan Balagueró <
joan.balagu...@grupoventus.com> wrote:
> Hello,
>
>
>
>
Hello,
Ive been using SSL with client authentication with signed certificates in
async http client 4.1, with no problem.
My code is:
FileInputStream fKeyStore = new FileInputStream(new
File(keyStoreLocation));
KeyStore keyStore = KeyStore.getInstance(keyStoreType);
Hello,
We have replaced the httpclient by the async client in our application.
Everything works fine, but the ‘NoHttpResponseException’ has disappeared
from our error statistics reports. So, or with the new async pool this error
does not occur for some reason (that I don’t know) or we are not
Hello,
We have replaced the httpclient by the async client in our application.
Everything works fine, but the ‘NoHttpResponseException’ has disappeared
from our error statistics reports. So, or with the new async pool this error
does not occur for some reason (that I don’t know) or we are not
Hi Oleg,
> 1. Why, exactly in the same load conditions, a pool with 600 connections is
> more than enough for the blocking client and not enough for the async one?
>
I cannot answer this question unless I can analyze and re-run the benchmark
used to load test both clients.
--> ok, I'll retest
client
On Thu, 2016-10-27 at 12:23 +0200, Joan Balagueró wrote:
> Hello,
>
> After working in production with the async client (instead of the
> blocking
> one) everything seems ok, except that now I can see this error
> intermitently:
>
> java.util.con
Hello,
Sorry, I didn't paste the last part of the xml:
Thanks,
Joan.
-Mensaje original-
De: Joan Balagueró [mailto:joan.balagu...@grupoventus.com]
Enviado el: jueves, 27 de octubre de 2016 12:23
Para: httpclient-users@hc.apache.org
Asunto: java.util.concurrent.TimeoutException
Hello,
After working in production with the async client (instead of the blocking
one) everything seems ok, except that now I can see this error
intermitently:
java.util.concurrent.TimeoutException
at
org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(AbstractN
Hello,
In my async client pool, Ive currently set up a select interval of 1000ms.
But I need to control response timeouts of 50ms, 100ms, etc.
So Ihave tried to implement something like this in the 'consumeContent'
method of my 'HttpAsyncResponseConsumer':
public void consumeContent(final
causes reactor threads to consume
more CPU resources.
--
Dmitry
On Fri, Oct 07, 2016 at 03:03:44PM +0200, Joan Balagueró wrote:
> Hello,
>
>
>
> I’m setting the socket timeout on my requests as follows:
> requestBuilder.setConfig(RequestConfig.copy(this.objHttp.g
Hello,
Im setting the socket timeout on my requests as follows:
requestBuilder.setConfig(RequestConfig.copy(this.objHttp.getRequestConfig())
.setSocketTimeout(responseTimeoutToSet).build());
I have double checked that the variable responseTimeoutToSet has the right
value. So if I set up
Within the HttpAsyncResponseConsumer?
Joan.
-Mensaje original-
De: Oleg Kalnichevski [mailto:o...@ok2consulting.com]
Enviado el: martes, 4 de octubre de 2016 13:59
Para: HttpClient User Discussion; Joan Balagueró
Asunto: Re: I/O reactor status: STOPPED
On October 4, 2016 12:52:42 PM
Hello,
I'm occassionally receiving this error, and the async pool stops working:
java.lang.IllegalStateException: Request cannot be executed; I/O reactor
status: STOPPED
at org.apache.http.util.Asserts.check(Asserts.java:46)
at
, 2016-10-03 at 10:45 +0200, Joan Balagueró wrote:
> Thanks Stefan and yes, that's right. And I already told my client to modify
> these settings. But I still have the doubt about why a Timeout exception in a
> pool that has no upper limit in the number of pooled co
> Den 3. okt. 2016 kl. 07.32 skrev Joan Balagueró
> <joan.balagu...@grupoventus.com>:
>
> Hello,
>
> I’m using the async PoolingNHttpClientConnectionManager (v 4.1.2).
>
> Occasionally I’m getting this error:
>
> j
Hello,
Im using the async PoolingNHttpClientConnectionManager (v 4.1.2).
Occasionally Im getting this error:
java.util.concurrent.TimeoutException
at
org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(AbstractN
IOConnPool.java:364)
at
Hello,
Im trying to retry NoHttpResponse exceptions with the async client. The
point is Im unable to generate this kind of error from my server. So my
question is: does this kind of exceptions that can be retried reach the
callback? In my case the HttpAsyncResponseConsumer.responseReceived
016-03-17 at 10:42 +0100, Joan Balagueró wrote:
> Hi Oleg,
>
> Thanks. If I have a 400ms connection timeout and a 850ms response timeout, I
> understand that the select interval must contain the 400ms (the lowest
> value). True?
>
Yes.
> In our app these connection/respon
east, because a
> Thread.sleep(100) is set before writing any byte to the servletoutputstream.
>
> So, why are these exceptions not triggered?
>
> Thanks,
> Joan.
>
>
>
>
> -Mensaje original-
> De: Oleg Kalnichevski [mailto:ol...@apache.org]
>
these exceptions not triggered?
Thanks,
Joan.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: martes, 15 de marzo de 2016 16:14
Para: HttpClient User Discussion
Asunto: Re: Help with async client
On Tue, 2016-03-15 at 15:54 +0100, Joan Balagueró wro
Hello,
We have moved from the blocking client (PoolingHttpClientConnectionManager)
to the async one (PoolingNHttpClientConnectionManager), and we are starting
some tests to check performance.
We have a test app that sends xml requests to our proxy. If the response is
not found in cache,
Hello,
We are starting to work with the Async http client. We are creating a
PoolingNHttpClientConnectionManager (translating our old
PoolingHttpClientConnectionManager to a PoolingNHttpClientConnectionManager).
Here we have 2 questions:
1. Hasn't the async client a retry handler and a stale
Hello,
Regarding this posts:
Any help in this issue would be much appreciated.
Thanks
mrhuang
I am not quite sure I understand the issue. You should not even be using
#releaseConnection in the first place. It is provided for compatibility with
HC 3.x. You should always close
Hello,
Ive just installed HC4.4.1 and some methods related to ssl are deprecated.
Concretely this piece of code:
SSLContext sslContext = SSLContexts.custom().useTLS().build();
sslContext.init(keyManagers, null, null);
return (new SSLConnectionSocketFactory(sslContext,
Hello,
After migrating to 4.3 from 4.1, I dont get keep-alive connections working.
My code is:
(
)
if (this.vkas == null) this.vkas = new KeepAliveStrategy(keepAliveDuration);
else this.vkas.setKeepAliveDuration(keepAliveDuration);
(...)
HttpClientBuilder hcBuilder =
Hello,
Forget it ...
Thanks.
Joan.
-Mensaje original-
De: Joan Balagueró [mailto:joan.balagu...@grupoventus.com]
Enviado el: jueves, 13 de marzo de 2014 19:23
Para: httpclient-users@hc.apache.org
Asunto: Keep alive
Hello,
After migrating to 4.3 from 4.1, I dont get keep-alive
Hello,
Migration from 4.1 to 4.3 is finished. Just some questions about certain
parameters:
1. For performance, is it recommended to set true to setTcpNoDelay
and false to setStaleConnectionCheckEnabled? I tried several combinations
in my stress tests and I dont see any
.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: miércoles, 12 de marzo de 2014 15:35
Para: HttpClient User Discussion
Asunto: Re: Migrating from 4.1 to 4.3
On Tue, 2014-03-11 at 12:43 +0100, Joan Balagueró wrote:
Hello,
1. Where can I set
]
Enviado el: miércoles, 12 de marzo de 2014 17:27
Para: HttpClient User Discussion
Asunto: Re: Migrating from 4.1 to 4.3
On Wed, 2014-03-12 at 15:46 +0100, Joan Balagueró wrote:
Hello Oleg,
Thanks. But taking this example:
RequestConfig.Builder builder = RequestConfig.custom(); if (proxyPort
diciembre de 2013 10:36
Para: HttpClient User Discussion
Asunto: Re: SSL connection
On Sat, 2013-11-30 at 23:52 +0100, Joan Balagueró wrote:
Hello Oleg,
Thanks for you help. Everything works fine now.
Just one more question: when I shutdown Tomcat, I see this message in
catalina.out (ssl debug
, 2013-12-02 at 11:16 +0100, Joan Balagueró wrote:
Oleg,
I close the connection pool by using
this.objHttp.getConnectionManager().shutdown();
About the expired connections, I have an idleConnectionsHandler that every
5 seconds removes expired connections and those that take idle longer than 5
/jsse/ReadDebug.html
[2]
http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#Debug
Best regards.
On 2 December 2013 17:40, Joan Balagueró joan.balagu...@grupoventus.com wrote:
Oleg,
What I would mean was:
1. I send 8 https requests, then I have 8 connections
Discussion
Asunto: Re: SSL connection
On Wed, 2013-11-27 at 19:24 +0100, Joan Balagueró wrote:
Hello,
I have an application (servlet running on tomcat) that must send a
https request to a server that requires client authentication.
Tomcat has correctly installed the truststore
Hello,
I have an application (servlet running on tomcat) that must send a https
request to a server that requires client authentication.
Tomcat has correctly installed the truststore and keystore. But I understand
that when our app sends the https request, I have to attach the client
Hello,
I have developed a proxy servlet with an xml cache, running in a Tomcat 6.
When the incoming xml request is not found in the proxy cache, I use
HttpClient 4.2.5 to create a new http request (PoolingConnection) and
redirect it to the client application servers to get the xml
Hello,
Im querying an url (with head method) and printing all the response headers
received:
HttpResponse response = objHttp.execute(objHead);
HeaderIterator it = response.headerIterator();
while (it.hasNext())
{
Header h = it.nextHeader();
System.out.println(h.getName()
Hello,
Is there any overhead in executing a EntityUtils.consume(httpEntity) if
the response has been completely consumed before? (reading and closing the
entity.getContent() inputStream)
Thanks,
Joan.
--Mensaje original--
De: visualize
Para:httpclient-users@hc.apache.org
Responder a:HttpClient User Discussion
Asunto: Re: HttpClient 4.0
Enviado: 28 Sep, 2009 11:06
olegk wrote:
visualize wrote:
Hello,
I'm trying to port my application to use HttpClient 4.0 instead of
version
Hello Oleg,
I attach the http log. I've been taking a look to this trace, and I've
observed the following. I don't know if it's important or not.
In line 53315, we have a request that is correctly processed. When
HttpClient tries to get a connection from pool, the information is:
Total
Hello Oleg,
Ok, then, in your opinion, it seems that some connections were closed on the
server side, but for H4 they are OK, and when H4 tries to use them, then a
NoHttpResponseException is thrown.
In fact, I've implemented an IdleConnectionsHandler that closes expired
connections and idle
));
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el: miércoles, 08 de julio de 2009 23:54
Para: HttpClient User Discussion
Asunto: Re: Http trace for cookies
Joan Balagueró Valls wrote:
Hello Oleg,
Im trying to send you the trace, but your mail
Hello Oleg,
Can I set the expect-continue handshake at httpclient level?
HttpParams objHttpParams = new BasicHttpParams();
HttpProtocolParams.setVersion(objHttpParams, HttpVersion.HTTP_1_1);
ClientConnectionManager cm = new
ThreadSafeClientConnManager(this.objHttpParams,
Again the attach zipped.
Joan.
-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Hello,
Here the attach (I hope)
Joan.
-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Hello Oleg,
Im trying to send you the trace, but your mail server does not accept it.
I paste here a couple of lines of this trace:
This is the interesting part of the trace. The expiry date is correct in the
line 7 (60 seconds from now). But it seems this expiry date does not appear
Hello Oleg,
Thanks, after some tests this is exactly what it happens.
When I send this cookie to my servlet, I receive all its data correctly
except the max-age attribute, which is always -1.
I'm trying to set MAX_AGE with your API, and I'm getting crazy...
I've tried
Hello,
Here the attach with the trace. It's a post request from my local app to my
servlet.
In all tests I've always used:
bcc.setVersion(1);
bcc.setAttribute(ClientCookie.VERSION_ATTR, 1);
Thanks,
Joan.
-Mensaje original-
De: Oleg Kalnichevski [mailto:ol...@apache.org]
Enviado el:
Hello Oleg,
Do you know any idea about when you plan to release H4-beta3?
Many thanks,
Joan.
...@apache.org wrote:
Joan Balagueró wrote:
Thanks Oleg. It seems strange to me because HttpClient3 (sending
requests
to
the same server) never fails. I'll take a look at the code again and
I'll
comment you something else.
I do not know why the server chokes on packets generated by HttpClient
4
Discussion
Asunto: RE: NO_HTTP_RESPONSE_EXCEPTION
On Fri, 2009-02-06 at 13:44 +0100, Joan Balagueró wrote:
Hello Oleg,
This is the log. I sent 10 concurrent requests, and all of them failed
with
HttpNoResponseException.
Thanks for you help,
Joan.
There is nothing wrong
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
82 matches
Mail list logo