Re: Throwing socketTimeoutException within HttpAsyncResponseConsumer consumeContent method

2016-10-20 Thread Oleg Kalnichevski
On Thu, 2016-10-20 at 12:11 +0200, Joan Balagueró wrote: > Hello, > > In my async client pool, I’ve currently set up a select interval of 1000ms. > But I need to control response timeouts of 50ms, 100ms, etc. > > So I’have tried to implement something like this in the 'consumeContent' > method

Throwing socketTimeoutException within HttpAsyncResponseConsumer consumeContent method

2016-10-20 Thread Joan Balagueró
Hello, In my async client pool, I’ve currently set up a select interval of 1000ms. But I need to control response timeouts of 50ms, 100ms, etc. So I’have tried to implement something like this in the 'consumeContent' method of my 'HttpAsyncResponseConsumer': public void consumeContent(final