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 2188719C5E for ; Tue, 22 Mar 2016 20:05:52 +0000 (UTC) Received: (qmail 93366 invoked by uid 500); 22 Mar 2016 20:05:52 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 93335 invoked by uid 500); 22 Mar 2016 20:05:52 -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 93311 invoked by uid 99); 22 Mar 2016 20:05:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 20:05:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 451C5C0217 for ; Tue, 22 Mar 2016 20:05:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.679 X-Spam-Level: ** X-Spam-Status: No, score=2.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_BL_SPAMCOP_NET=2, 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: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id yjzO1FrOLYDb for ; Tue, 22 Mar 2016 20:05:49 +0000 (UTC) Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.161.181]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 233F75F572 for ; Tue, 22 Mar 2016 20:05:49 +0000 (UTC) Received: by mail-yw0-f181.google.com with SMTP id h129so268908134ywb.1 for ; Tue, 22 Mar 2016 13:05:49 -0700 (PDT) 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-transfer-encoding; bh=MnUsCEqXTSteVCXw4hhMP/bpwTuEO51jUHnY02i13og=; b=ssK8YXvrzP2OqhtDXgctUCEg0rZhNjD3i5msmCRY9FIblcUKHpGfVFacn8ycGWMOlf LjLs+YVXfrzV7m2yHSaxH/l58q8ZzXFqaB55f5+yuMieIah2R3688pj4HfrLT62+F2sk 1RZ5r2Yht5sosz2zIV4zCNw0UJbcp/KdXojep9rWNAuIUOpZXcOFgVZwAP4tLV+D6DPu 8zpdTu0nWs/1NK8l1oT889OiCF7cULSJDTuE7o2umPTQBiXEokg3MjCS0EYfl09t8oE5 LzgR3VFkPiAVgMxEEq4Wpt/7gP5hPloyk0LA2jW6EMPOJNrKM0ZEZ0pvenjSQ25WfRhc sXtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=MnUsCEqXTSteVCXw4hhMP/bpwTuEO51jUHnY02i13og=; b=Sq8Bu9F8YcmOED000z6RIqeOJwrVj6aT2xlHw+7HV9ZSQWMbzvU2nQGklofba4TG0z 2JQJft0QOOQ+s9bQhjjFS6sIiNtwzlPSqagPQwuEOYnKtGgk/w9i0ocTu+s9uNGvtEPz ezvBdMyI3eguBDSZ5cVO7t46YrHvGD+XaFIq8US+p6HIQxD5TCp8tZ4Z52xzbgbW/a+P 8hFrYlniU802mSHkuHGCmG9qyGfD1shTr4kY+X0MZWr/U5UnfajFBfxwvx0ijjfLDI6y jtpt60zgz/w/x1MCf/S1X2WtHvV33zzFUb2wRfXJHqG4uIWTgfGZEe2cjcHpNRwdF+xW GqSQ== X-Gm-Message-State: AD7BkJIVss3zYkNosuNh3tPi5XPtiueFy8tozvWDoKH/DjvmYe1YgenpEYF5b1K7xh3B4DWzkffuOOuwokoIHg== MIME-Version: 1.0 X-Received: by 10.129.79.4 with SMTP id d4mr17574335ywb.159.1458677148584; Tue, 22 Mar 2016 13:05:48 -0700 (PDT) Received: by 10.13.210.66 with HTTP; Tue, 22 Mar 2016 13:05:48 -0700 (PDT) In-Reply-To: References: <20160321181704.3D7023A027B@svn01-us-west.apache.org> Date: Tue, 22 Mar 2016 20:05:48 +0000 Message-ID: Subject: Re: svn commit: r1736072 - in /jmeter/trunk: src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java xdocs/changes.xml From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable What do we do for other samplers if the connect fails? Do we document the behaviour? is the value supposed to be the time to connect even if connect fails? On 22 March 2016 at 19:32, Philippe Mouawad wr= ote: > In fact I don't know :-) > > In case of exception, connectEnd won't be called so for example, if issue > is due to timeout, value will not be equal to timeout. > Should we put it in a try/finally arount getSocket ? > Thanks > > On Tue, Mar 22, 2016 at 8:29 PM, Felix Schumacher < > felix.schumacher@internetallee.de> wrote: > >> >> >> Am 22. M=C3=A4rz 2016 20:22:22 MEZ, schrieb Philippe Mouawad < >> philippe.mouawad@gmail.com>: >> >Hi Felix, >> >Do you think it is ok in case of Connection error ? >> >> Yes, that is why I put connectEnd there. But feel free to place it >> somewhere else. I wouldn't be angry. >> >> Regards, >> Felix >> >> > >> >Thank you >> >Regards >> > >> >On Mon, Mar 21, 2016 at 7:17 PM, wrote: >> > >> >> Author: fschumacher >> >> Date: Mon Mar 21 18:17:03 2016 >> >> New Revision: 1736072 >> >> >> >> URL: http://svn.apache.org/viewvc?rev=3D1736072&view=3Drev >> >> Log: >> >> TCP Sampler: Set connect time in sampler when connection is >> >established. >> >> >> >> Bugzilla Id: 59205 >> >> >> >> Modified: >> >> >> >> >> >> >jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TC= PSampler.java >> >> jmeter/trunk/xdocs/changes.xml >> >> >> >> Modified: >> >> >> >> >jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TC= PSampler.java >> >> URL: >> >> >> > >> http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/tcp/org/apache/jm= eter/protocol/tcp/sampler/TCPSampler.java?rev=3D1736072&r1=3D1736071&r2=3D1= 736072&view=3Ddiff >> >> >> >> >> >> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >> >> --- >> >> >> >> >jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TC= PSampler.java >> >> (original) >> >> +++ >> >> >> >> >jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TC= PSampler.java >> >> Mon Mar 21 18:17:03 2016 >> >> @@ -393,6 +393,7 @@ public class TCPSampler extends Abstract >> >> res.sampleStart(); >> >> try { >> >> Socket sock =3D getSocket(socketKey); >> >> + res.connectEnd(); >> >> if (sock =3D=3D null) { >> >> res.setResponseCode("500"); //$NON-NLS-1$ >> >> res.setResponseMessage(getError()); >> >> >> >> Modified: jmeter/trunk/xdocs/changes.xml >> >> URL: >> >> >> > >> http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=3D173607= 2&r1=3D1736071&r2=3D1736072&view=3Ddiff >> >> >> >> >> >> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >> >> --- jmeter/trunk/xdocs/changes.xml (original) >> >> +++ jmeter/trunk/xdocs/changes.xml Mon Mar 21 18:17:03 2016 >> >> @@ -171,6 +171,7 @@ Summary >> >>
  • 58300 Make existing Java Samplers implement >> >> Interruptible
  • >> >>
  • 58160JMS Publisher : reload file content if file >> >name >> >> changes. Based partly on a patch contributed by Maxime Chassagneux >> >> (maxime.chassagneux at gmail.com)
  • >> >>
  • 58786JDBC Sampler : Replace Excalibur DataSource >> >by >> >> more up to date library commons-dbcp2
  • >> >> +
  • 59205TCP Sampler: Set connect time in sampler >> >when >> >> connection is established.
  • >> >> >> >> >> >>

    Controllers

    >> >> >> >> >> >> >> >> > > > -- > Cordialement. > Philippe Mouawad.