RE: Fw:Fw:PoolingHttpClientConnectionManager how to reuse the connection

2015-04-24 Thread Joan Balagueró
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

Re: Fw:Fw:PoolingHttpClientConnectionManager how to reuse the connection

2015-04-24 Thread Stefan Magnus Landrø
I prefer this code-style: client.execute(new HttpGet(), response - { return response.getAllHeaders(); } ); The response handler will clean up everything. 2015-04-24 13:57 GMT+02:00 Oleg Kalnichevski ol...@apache.org: On Fri, 2015-04-24 at 13:22 +0200, Joan Balagueró wrote: Hello,

Re: Fw:Fw:PoolingHttpClientConnectionManager how to reuse the connection

2015-04-23 Thread Oleg Kalnichevski
On Thu, 2015-04-23 at 09:41 +0800, qustmrhu...@163.com wrote: Hi,i use PoolingHttpClientConnectionManager with httpclient4.4 . I see the code in MainClientExec.java,but i can't understand . The respone entity is always not null and is stream,so the releaseConnection method cant be