Re: Telling HC to make new connections all the time

2016-06-23 Thread Benson Margulies
On Wed, Jun 22, 2016 at 11:26 AM, Oleg Kalnichevski wrote: > On Wed, 2016-06-22 at 07:07 -0400, Benson Margulies wrote: >> On Wed, Jun 22, 2016 at 3:05 AM, Stefan Magnus Landrø >> wrote: >> > Hi Benson, >> > >> > Have you considered implementing a

Re: Telling HC to make new connections all the time

2016-06-22 Thread Oleg Kalnichevski
On Wed, 2016-06-22 at 07:07 -0400, Benson Margulies wrote: > On Wed, Jun 22, 2016 at 3:05 AM, Stefan Magnus Landrø > wrote: > > Hi Benson, > > > > Have you considered implementing a custom > >

Re: Telling HC to make new connections all the time

2016-06-22 Thread Benson Margulies
On Wed, Jun 22, 2016 at 3:05 AM, Stefan Magnus Landrø wrote: > Hi Benson, > > Have you considered implementing a custom > https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/DnsResolver.html > that handles DNS changes in a better way

Re: Telling HC to make new connections all the time

2016-06-22 Thread Stefan Magnus Landrø
Hi Benson, Have you considered implementing a custom https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/DnsResolver.html that handles DNS changes in a better way than the default implementation? You could probably use http://www.xbill.org/dnsjava/ and lookup

Re: Telling HC to make new connections all the time

2016-06-21 Thread Oleg Kalnichevski
On Tue, 2016-06-21 at 08:28 -0400, Benson Margulies wrote: > Oleg, If I set a TTL, do I also need an IdleConnectionMonitorThread ( > http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e652 > )? thanks, benson. > TTL setting only ensures connections cannot get re-used

Re: Telling HC to make new connections all the time

2016-06-21 Thread Benson Margulies
Oleg, If I set a TTL, do I also need an IdleConnectionMonitorThread ( http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d5e652 )? thanks, benson. On Tue, Jun 21, 2016 at 4:41 AM, Oleg Kalnichevski wrote: > On Mon, 2016-06-20 at 13:57 -0400, Benson

Re: Telling HC to make new connections all the time

2016-06-21 Thread Oleg Kalnichevski
On Mon, 2016-06-20 at 13:57 -0400, Benson Margulies wrote: > We use the async http components library to connect various components > in a system that is deployed, in some cases, on AWS. When it's > deployed on AWS, there are ELBs involved. > > Like some other people, we've having various trauma