On Fri, 2023-06-23 at 11:52 +0200, Joan grupoventus wrote:
> Hi Oleg,
> 
> In the lax mode the pool manager supports the per route max limit,
> but not total max limit. The total max setting has no effect.
> --> Thanks, I can see that when I print the values, the total max is
> always 0.
> 
> But the question is if I can modify the per route max limit on the
> fly, or after modifying it I need to restart the pool to apply the
> new value.
> 

One can modify the per route max at runtime.

Oleg


> Thanks,
> 
> Joan.
> 
> -----Original Message-----
> From: Oleg Kalnichevski <ol...@apache.org> 
> Sent: Friday, June 23, 2023 11:28 AM
> To: HttpClient User Discussion <httpclient-users@hc.apache.org>
> Subject: Re: Question about max connections
> 
> On Fri, 2023-06-23 at 11:23 +0200, Joan grupoventus wrote:
> > Hello,
> > 
> > We have an async http pool with LAX concurrency (httpclient 5.2.1):
> > this.phccm =
> > PoolingAsyncClientConnectionManagerBuilder.create().setPoolConcurre
> > nc
> > yPolicy(PoolConcurrencyPolicy.LAX).build();
> > 
> > We set the max connections in this way:
> > public void setMaxConnections(int maxConnections) {
> >   this.phccm.setMaxTotal(maxConnections);
> >   this.phccm.setDefaultMaxPerRoute(maxConnections);
> > }
> > 
> > I'm not sure if we are having an issue with this, but before
> > starting 
> > to analyse http traces just one question: will it work to call the 
> > 'setMaxConnections' method to modify these parameters on the fly,
> > or 
> > must I restart the pool to apply the new values?
> > 
> > Thanks,
> > 
> > Joan.
> > 
> 
> Hi Joan
> 
> In the lax mode the pool manager supports the per route max limit,
> but not total max limit. The total max setting has no effect.
> 
> Oleg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to