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 8F4A710931 for ; Wed, 19 Feb 2014 18:49:59 +0000 (UTC) Received: (qmail 5098 invoked by uid 500); 19 Feb 2014 18:49:59 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 5077 invoked by uid 500); 19 Feb 2014 18:49:59 -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 5069 invoked by uid 99); 19 Feb 2014 18:49:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Feb 2014 18:49:58 +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 (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.212.178 as permitted sender) Received: from [209.85.212.178] (HELO mail-wi0-f178.google.com) (209.85.212.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Feb 2014 18:49:53 +0000 Received: by mail-wi0-f178.google.com with SMTP id cc10so948184wib.11 for ; Wed, 19 Feb 2014 10:49:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6oaWb9rj3lt+nulkRp05xnew3eSRW4tNcCsHofC7Mzc=; b=dK+8U4naWPgm+p4iP025ghsQz2w1myjZweeosu+YlhxR3xN/KGfH6vpvcCNDcawfPl O8XUIeW5cWGpXeOTM6RIhNYnExtY9mo/QCao88erQLClldiWPyt8A86fxksUBZvTTwv1 dK+Voe23LE4crf8XNuKrCZFCtMpq2LK/py+CrAyxNjmck0Vs1WX19Q0QxqXVZz0XJatQ pkkvMyObIgoqu3ElFBAFpVyJmXlDLFH8ZSjnEe0/tRBXLB6h74IdcspfByGHctHT70Bp he/YTuEXk2rGtNdOs5m9ayMpf88TxJX8CPUkcLlMx5jmdnajScI0TIBIL82QrR8u5dlu bnCg== MIME-Version: 1.0 X-Received: by 10.194.108.162 with SMTP id hl2mr3363763wjb.84.1392835772062; Wed, 19 Feb 2014 10:49:32 -0800 (PST) Received: by 10.194.86.198 with HTTP; Wed, 19 Feb 2014 10:49:32 -0800 (PST) Date: Wed, 19 Feb 2014 18:49:32 +0000 Message-ID: Subject: Bug 56119 - dealing with idle connection timeout and dropped connection From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org It looks as though the problem reported in Bug 56119 was due to the server dropping connections that have been idle too long. There may also be servers that only allow a connection to be reused a certain number of times (this does not seem to have been the case here). This email is to discuss what JMeter could perhaps do to make it easier to test such servers. The two existing work-rounds are: - disable Keep-Alive - enable staleCheck Neither is ideal; the first is awkward to use, and staleCheck can generate unnecessary additional traffic (which is why it was disabled in 2.11). I can think of two possible approaches: 1) proactively shut connections. This would be easy for servers that limit reuse. Just count reuses and turn off keep-alive when a specified limit is reached. Not so easy for idle timeouts; one cannot retroactively disable keep-alive. 2) Deal with the disconnects when they occur. The code needs to distinguish which errors are retriable, and may need to distinguish at what point the failure occurs. For example, even a POST ought to be retriable if JMeter is unable to send any data on the connection. Also need to consider how one might report retries. I think the tester needs to be able to find out if additional requests have been made by JMeter.