hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vic Cekvenich <cekvenich....@gmail.com>
Subject Am I doing this right: PoolingHttpClientConnectionManager
Date Sun, 11 Oct 2015 00:21:11 GMT
Hi, we have heavy load, am I using the pool right:

1. I make a call using a client and in finally I consume but * don't * call
close() - since I want conn returned to the pool.

2. In HttpRequestRetryHandler retryRequest, once it retries 10 times, I do
close the conn - since it should be removed from the pool as likely bad.

HttpClientContext ctx = (HttpClientContext) context;
HttpClientConnection conn = (HttpClientConnection) ctx.getConnection();
This I do since I get many close max tries errors and other error responses
from the end point

I get socket closed errors.

What should I do in retryRequest after 20 errors to reduce further errors?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message