I mean starting with a fresh sslcontext.
It works if I keep a ref on PoolingHttpConnectionManager and call

poolingHttpClientConnectionManager.closeExpiredConnections();
poolingHttpClientConnectionManager.closeIdleConnections(1L,
TimeUnit.MICROSECONDS);


But is there a better way ?
Thanks

Regards
On Sunday, March 11, 2018, Oleg Kalnichevski <ol...@apache.org> wrote:

> On Sat, 2018-03-10 at 14:08 +0100, Philippe Mouawad wrote:
> > ...
>
> > > Hello,
> > >
> > > In current jmeter trunk when we have Client certificate
> > > authentication and
> > > we need to reset SSL State so another SSLContext is created we do
> > > this:
> > > https://github.com/apache/jmeter/blob/trunk/src/protocol/http/org/a
> > > pache/
> > > jmeter/protocol/http/sampler/HTTPHC4Impl.java#L838
> > >
> > >
> > > We are currently migrating to last 4.5 and would like to know what
> > > is the
> > > clean way to reset SSL State ?
>
> I am not sure I understand what exactly you mean by resetting SSL
> state.
>
> Oleg
>
>
> > > Since httpClient.getConnectionManager() is deprecated.
> > > Should we keep a reference to PoolingHttpClientConnectionManager
> > > and call
> > > those methods on it ?
> > >
> > > Current state of migration is here:
> > >
> > >    - https://github.com/ubikloadpack/jmeter/blob/HC4_
> > >    FULL_MIGRATION/src/protocol/http/org/apache/jmeter/
> > >    protocol/http/sampler/HTTPHC4Impl.java#L973
> > >    <https://github.com/ubikloadpack/jmeter/blob/HC4_FULL_MIGRATION/
> > > src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Im
> > > pl.java#L973>
> > >
> > >
> > > To recap, in JMeter we have 1 HttpClient per User (and this is
> > > needed as
> > > per a previous discussion on this mailing list).
> > >
> > > Thanks for your help.
> > > --
> > > Regards.
> > > Philippe M.
> > >
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
>
>

-- 
Cordialement.
Philippe Mouawad.

Reply via email to