Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EFE5EB2B for ; Wed, 23 Jan 2013 16:51:47 +0000 (UTC) Received: (qmail 96968 invoked by uid 500); 23 Jan 2013 16:51:46 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 96935 invoked by uid 500); 23 Jan 2013 16:51:46 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 96926 invoked by uid 99); 23 Jan 2013 16:51:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 16:51:46 +0000 X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=NO_RDNS_DOTCOM_HELO,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oliver_lloyd@hotmail.com designates 65.55.111.92 as permitted sender) Received: from [65.55.111.92] (HELO blu0-omc2-s17.blu0.hotmail.com) (65.55.111.92) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 16:51:37 +0000 Received: from BLU0-SMTP421 ([65.55.111.72]) by blu0-omc2-s17.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 23 Jan 2013 08:51:16 -0800 X-EIP: [Q9+auAL5UdFZ83pNdKlvtO/Sw3QaYgZ5] X-Originating-Email: [oliver_lloyd@hotmail.com] Message-ID: Received: from acac0ca6.ipt.aol.com ([143.252.1.30]) by BLU0-SMTP421.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 23 Jan 2013 08:51:14 -0800 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Subject: Re: Long polling http request From: Oliver Lloyd In-Reply-To: Date: Wed, 23 Jan 2013 16:51:12 +0000 Content-Transfer-Encoding: quoted-printable References: To: "JMeter Users List" X-Mailer: Apple Mail (2.1485) X-OriginalArrivalTime: 23 Jan 2013 16:51:14.0575 (UTC) FILETIME=[DB1FE9F0:01CDF989] X-Virus-Checked: Checked by ClamAV on apache.org I think that with long polling the connection is closed once a response = is received and a new request made straight after so you actually don't = need to keep the original request open - you want to end it. It's really not so hard to do this in JMeter - just setup a thread to = call the endpoint and let it do what it does by default when making a = standard HTTP request. The way JMeter loops by default will give you = what you need to simulate long polling - all the clever stuff is server = side, not client. Just setup a simple thread group with this one call in it and nothing = else. Put your other logic in a different group. On 23 Jan 2013, at 16:12, sebb wrote: > On 23 January 2013 16:03, Jono wrote: >>=20 >> It is not web sockets it is simply a long held http request. >> The method described >> in the link would not work for me. I need to act on the incoming = data >> without dropping the connection. Essentially I need to >> move on from the HTTP sampler to the next sampler but >> continue to hold the original http connection >> open and listen for the next incoming message. >>=20 >> I do not want to close the HTTP request to validate the >> response data or move on to other test steps. I >> expect more data to come down the from that HTTP >> request separated by new lines. >>=20 >> I can't wait until all the data comes down as I have to act on it >> immediately. >=20 > In that case I think you will need to write your own sampler, as the > HTTP Samplers are not designed to return until the response is > complete. >=20 > You might be able to hack a solution using the >=20 > = http://jmeter.apache.org/usermanual/component_reference.html#TCP_Sampler >=20 > Or you could perhaps extend one of the HTTP Samplers. >=20 >> Thanks >>=20 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org >> For additional commands, e-mail: user-help@jmeter.apache.org >>=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org