Re: Multiple HTTP async client instances and java.nio.channels.AsynchronousCloseException

2012-11-16 Thread Oleg Kalnichevski
On Fri, 2012-11-16 at 11:44 -0500, Sachin Nikumbh wrote: > Hi Oleg, > > Thanks for your response. > > On Fri, Nov 16, 2012 at 10:59 AM, Oleg Kalnichevski wrote: > > > On Thu, 2012-11-15 at 16:42 -0500, Sachin Nikumbh wrote: > > > Hi, > > > > > > I have successfully used the HTTP Async client. It

Re: Multiple HTTP async client instances and java.nio.channels.AsynchronousCloseException

2012-11-16 Thread Sachin Nikumbh
Hi Oleg, Thanks for your response. On Fri, Nov 16, 2012 at 10:59 AM, Oleg Kalnichevski wrote: > On Thu, 2012-11-15 at 16:42 -0500, Sachin Nikumbh wrote: > > Hi, > > > > I have successfully used the HTTP Async client. It's working great for > the > > most part. In my application I am creating mul

Re: Multiple HTTP async client instances and java.nio.channels.AsynchronousCloseException

2012-11-16 Thread Oleg Kalnichevski
On Thu, 2012-11-15 at 16:42 -0500, Sachin Nikumbh wrote: > Hi, > > I have successfully used the HTTP Async client. It's working great for the > most part. In my application I am creating multiple instances > of DefaultHttpAsyncClient. However, I > get java.nio.channels.AsynchronousCloseException o

Re: how to release leased connection in httpclient PoolingClientConnectionManager

2012-11-16 Thread Oleg Kalnichevski
On Fri, 2012-11-16 at 00:05 +0800, Zhan Zhifeng wrote: > hi, Oleg > > How can I "_always_ response content "? > > I have do these below: > HttpEntity entity = response.getEntity(); > if (entity != null && header_[0].getValue(). > contains("text/html")) { > String html_ = EntityUtils.toString(