Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28F8210431 for ; Sun, 16 Feb 2014 15:17:05 +0000 (UTC) Received: (qmail 66164 invoked by uid 500); 16 Feb 2014 15:17:04 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 66048 invoked by uid 500); 16 Feb 2014 15:17:04 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 66040 invoked by uid 99); 16 Feb 2014 15:17:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 15:17:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 15:16:55 +0000 Received: by mail-wg0-f51.google.com with SMTP id n12so1597907wgh.30 for ; Sun, 16 Feb 2014 07:16:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FUTtmbfk7Ktm3GYqTCgjmVoOAI9/tzqfi42Ve8k88Yk=; b=DRHx9dub2gMTPYSD9GvRcAjyTrHwwHW3p5siAiNoB63OzoQnntBv6B26mG50IUewm5 WDhQtB21JnfZGsapTXN9CF1IU1GR25YU484s8Gg0rd9alfNmiGo899nV6LJFgraVbg1P H1/m4GVeWbClOBD0YHULjnYlD2JDoQNTGOQqc4hFHUQfkAhp8VpNZbLcrZw3EyG8KOln Jz9eYSMbJZseRcDstaT17v0cVJw+FK+i+ZB00RnOzLwSdgUKkwra57t7cZDxAnOl9IzG gF/1U1SwLibXJwPDIVhUHxV87Kmt/wodYYyRiko46JsP6YNFsee2XYBNkCVlsyP0WYlv TFaA== MIME-Version: 1.0 X-Received: by 10.180.101.166 with SMTP id fh6mr9356429wib.2.1392563795669; Sun, 16 Feb 2014 07:16:35 -0800 (PST) Received: by 10.194.86.198 with HTTP; Sun, 16 Feb 2014 07:16:35 -0800 (PST) In-Reply-To: References: Date: Sun, 16 Feb 2014 15:16:35 +0000 Message-ID: Subject: Re: Some questions about HTTPHC4Impl From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 16 February 2014 14:06, Philippe Mouawad wrote: > ((AbstractHttpClient) > httpClient).addResponseInterceptor(METRICS_SAVER); // HACK > > Any clarification about this hack ? > > I understand METRICS_SAVER saves metrics as another attribute name, but why > as it should be available under ((HttpConnection) > context.getAttribute(ExecutionContext.HTTP_CONNECTION).getMetrics(); > And METRICS_RESETTER resets these metrics. > > I suppose the reset is to have metrics per sample but some comments would > be useful to clarify exactly: > - Why we need to reset, is it only to have it per sample ? this can be an > issue as we loose information like number of requests ... > - Why we need to have METRICS_SAVER, was it some due to a temporary bug or > missing feature in HTTPClient 4 at time of writing ? It's a missing feature. See https://issues.apache.org/jira/browse/HTTPCLIENT-1081 > Regards > Philippe > > > On Sun, Feb 16, 2014 at 2:48 PM, Philippe Mouawad < > philippe.mouawad@gmail.com> wrote: > >> Hello, >> Looking at code of HTTPHC4Impl, I see this: >> >> private static final String CONTEXT_METRICS = "jmeter_metrics"; // >> TODO hack, to be removed later >> >> >> -- >> Cordialement. >> Philippe Mouawad. >> >> >> > > > -- > Cordialement. > Philippe Mouawad.