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 E74AF102E4 for ; Sun, 16 Feb 2014 14:07:19 +0000 (UTC) Received: (qmail 22602 invoked by uid 500); 16 Feb 2014 14:07:19 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 22486 invoked by uid 500); 16 Feb 2014 14:07:18 -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 22478 invoked by uid 99); 16 Feb 2014 14:07:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 14:07:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of philippe.mouawad@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qc0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Feb 2014 14:07:12 +0000 Received: by mail-qc0-f178.google.com with SMTP id m20so22280183qcx.37 for ; Sun, 16 Feb 2014 06:06:52 -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=hJPzihTa+lqZlVu8Vx1SrAWH8Ysa7Pob3nHLmbdjoxE=; b=z3UEQK2jLod27e9a4pZPK+DSciEAmjxDK6OhAeh9WhpnvfAZ1ycvvFa1tlauj7rFCr DuSsSCvzAlgkxuS+BJQqPouRLJXrNo53L0HQH/cJExvUyHay5lukDGh6tt42dW2A8D2y ahA//S9Bh/EF2iLfXOf0EiGkWS9YoAEDn8onRSzObdH/kWM6Vc1YPkbltQldTmByNl8D IPigvjENOP9xORWyLR+TxVBTZuPoPJzTq8WlPBg9l9Z7JHjgoC/7+y6fCUpW3eJyjwUr go7X7q7AY6KHIjFTc9433BDr4MMb2UE48pFPxORbX5xXt+qVJiM6aDavypTxRc70I/FQ WOsg== MIME-Version: 1.0 X-Received: by 10.140.25.142 with SMTP id 14mr1035605qgt.83.1392559612002; Sun, 16 Feb 2014 06:06:52 -0800 (PST) Received: by 10.140.40.167 with HTTP; Sun, 16 Feb 2014 06:06:51 -0800 (PST) In-Reply-To: References: Date: Sun, 16 Feb 2014 15:06:51 +0100 Message-ID: Subject: Re: Some questions about HTTPHC4Impl From: Philippe Mouawad To: "dev@jmeter.apache.org" Content-Type: multipart/alternative; boundary=001a11c11c2e0088c004f2868d4d X-Virus-Checked: Checked by ClamAV on apache.org --001a11c11c2e0088c004f2868d4d Content-Type: text/plain; charset=ISO-8859-1 ((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 ? 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. --001a11c11c2e0088c004f2868d4d--