From httpclient-users-return-14162-archive-asf-public=cust-asf.ponee.io@hc.apache.org Sun Mar 11 15:57:48 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 163C318060F for ; Sun, 11 Mar 2018 15:57:47 +0100 (CET) Received: (qmail 48647 invoked by uid 500); 11 Mar 2018 14:57:46 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 48630 invoked by uid 99); 11 Mar 2018 14:57:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Mar 2018 14:57:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CD0B41A4EDB for ; Sun, 11 Mar 2018 14:57:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Qfp6D9kMrI0X for ; Sun, 11 Mar 2018 14:57:43 +0000 (UTC) Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 924A05F56A for ; Sun, 11 Mar 2018 14:57:43 +0000 (UTC) Received: by mail-qt0-f169.google.com with SMTP id y6so16238509qtm.7 for ; Sun, 11 Mar 2018 07:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fdHUpt6UvH7aKujMQCdv4p4mnlcusSkpdOKmXZGurOU=; b=tJii03XiP/KU82uzJGak0SPsdzyvyp0vjRI9FLgNvpgcaisobd65S6pYjCxNgDwPAL ljVkTjKLi1yzfNR/Zp8KSxwaHCARalusni37dPBkqViXapr30vUw7MpWOG8cMOZBVuAj T6lcxxGhEjD0mlUgorvCuQ+q+EJS47QxuMaHpEKl45zy4epx1ig7U+5WfyzOHMJYKl82 Mn+NCKM+Oll1YqfrW2xLudA+KEpKvju9wK9CiUdppP9Gj4l7INLaI2/dkXIHIZnKnXPf bUn98TjWkOEB3oB9y+jp8oGuBy2nd2Ib8ZGkcZHfXaT0yV9LulFbT1dq//cYuGSoKiJX eFMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fdHUpt6UvH7aKujMQCdv4p4mnlcusSkpdOKmXZGurOU=; b=hGDrxdWBe3lqOYakoB1jxWw8tiG7e0qKyJkPCaLZPkUSvi4X0jajVLTSvLbeFQVkTk 9hC+71+6UO4X+ISRuGKdpV5L37dcw44wpy9v6AqW7NePUSHuXQUYG/zcEKROfnn7QQwl C+QJXLG60wkI7zg9RP7VGbmL6Hn0C1/LX9KOkdgGGUab7k2cxZz85xyvO4dR7Ec+3Zur TYu3AM+K23kghIKkdR84N0th2mq9lj6jbvKWBlnKJGMX8uAB4l3WvG295yBqdjq3KcH8 fRlB7MpRnWCoWlaoGzbJbhB0xxqrAwh4ctn5uBJZzohYNoxd11T7fBKdvVZlmGWsIOOm ++Aw== X-Gm-Message-State: AElRT7EfYIeOFnOMMq6L60PxbQ29Ej7EqR+U0c5O9Mo0/rw02qbJfPTF rUVZVNDFFKC8JXxSEBfi8D3IAKqOSnbXmIq0m30= X-Google-Smtp-Source: AG47ELtFDwJotNzdHv3XgV8h5p7rRLoeeCKuy9xIMEEKqjViFstRCodu7gcWl4bdrymh6MDHIVqLSXHyAsMgQ0KZ1js= X-Received: by 10.200.39.178 with SMTP id w47mr7942102qtw.206.1520780256581; Sun, 11 Mar 2018 07:57:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.157.2 with HTTP; Sun, 11 Mar 2018 07:57:36 -0700 (PDT) In-Reply-To: <1520774782.5121.0.camel@apache.org> References: <1520774782.5121.0.camel@apache.org> From: Philippe Mouawad Date: Sun, 11 Mar 2018 15:57:36 +0100 Message-ID: Subject: Re: How to clear SSL State in HC4.5.5 To: HttpClient User Discussion Content-Type: multipart/alternative; boundary="001a11402d2ef9a1f20567243e83" --001a11402d2ef9a1f20567243e83 Content-Type: text/plain; charset="UTF-8" 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 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 > > > > > 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-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > -- Cordialement. Philippe Mouawad. --001a11402d2ef9a1f20567243e83--