SSL Handshake : timing and timeout

2016-11-10 Thread Philippe Mouawad
Hello, Is there a way in HttpClient/HttpCore to compute the time taken by SSL Handshake ? And timeout handshake ? Thank you Regards Philippe M.

Re: RetryHandler Per GetMethod

2016-11-10 Thread Murat Balkan
Hi, So I need to put to the Context an attribute and read it in the handler? Thank you On 10 November 2016 at 05:38, Bernd Eckenfels wrote: > In fact the retry handlers (some implementations) already look at the > method and only retry idempotent methods > > Gruss > Bernd > -- > http://bernd.ec

Re: HttpClient behavior on close with active connections

2016-11-10 Thread Shawn Heisey
On 11/10/2016 3:21 AM, Oleg Kalnichevski wrote: > On Wed, 2016-11-09 at 13:43 -0700, Shawn Heisey wrote: >> What happens to a long-lived HTTP connection if another thread calls >> close() on the HttpClient? Does the connection immediately die and >> throw an exception, or would the connection finis

Re: RetryHandler Per GetMethod

2016-11-10 Thread Bernd Eckenfels
In fact the retry handlers (some implementations)  already look at the method and only retry idempotent methods Gruss Bernd -- http://bernd.eckenfels.net On Thu, Nov 10, 2016 at 11:15 AM +0100, "Oleg Kalnichevski" wrote: On Wed, 2016-11-09 at 09:05 -0500, Murat Balkan wrote: > He

NoHttpResponseException in the async client

2016-11-10 Thread Joan Balagueró
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 catc

Re: HttpClient behavior on close with active connections

2016-11-10 Thread Oleg Kalnichevski
On Wed, 2016-11-09 at 13:43 -0700, Shawn Heisey wrote: > I'm using SolrJ 6.2.1 in the program I'm writing, which pulls in > httpclient/httpmime 4.5.2 and httpcore 4.4.5 as dependencies. > > One of the things that my SolrJ code does takes over an hour to > complete. The HTTP connection is kept ope

Re: RetryHandler Per GetMethod

2016-11-10 Thread Oleg Kalnichevski
On Wed, 2016-11-09 at 09:05 -0500, Murat Balkan wrote: > Hello, > > Is it possible to set a retry handler per HttpGet? The following code taken > from the documentation only applies to 3x and seems to be deprecated. > > > httpget.getParams(). > setParameter(HttpMethodParams.RETRY_HANDLER, my

Re: NoHttpResponseException Timer?

2016-11-10 Thread Oleg Kalnichevski
On Tue, 2016-11-08 at 10:48 -0500, Murat Balkan wrote: > Hi Oleg, > > From the documentation , I understand that this exception is thrown after > the TCP socket is opened and client sends GET / request. We then start > waiting the response from the server, but it never responds but drops the > con