Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 83058 invoked from network); 14 Nov 2005 14:04:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Nov 2005 14:04:46 -0000 Received: (qmail 69338 invoked by uid 500); 14 Nov 2005 14:02:53 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 69284 invoked by uid 500); 14 Nov 2005 14:02:53 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 69269 invoked by uid 99); 14 Nov 2005 14:02:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 06:02:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [80.74.144.174] (HELO uml24.umlhosting.ch) (80.74.144.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 06:02:45 -0800 Received: from oleg by uml24.umlhosting.ch with local (Exim 4.50) id 1Ebeul-0007Gn-G3 for commons-user@jakarta.apache.org; Mon, 14 Nov 2005 15:02:31 +0100 Date: Mon, 14 Nov 2005 15:02:31 +0100 From: Oleg Kalnichevski To: commons-user@jakarta.apache.org Subject: Re: [HTTPClient] Simulating slow connections Message-ID: <20051114140231.GA27939@uml24.umlhosting.ch> Mail-Followup-To: commons-user@jakarta.apache.org References: <25aac9fc0511140529h4753fcfev@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25aac9fc0511140529h4753fcfev@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, Nov 14, 2005 at 01:29:24PM +0000, sebb wrote: > Is there any way to simulate slow network connections in HttpClient? > > We use it in JMeter, and a user has asked if JMeter can support > emulation of slow, e.g. dial-up modem connections. > > JMeter test plans can of course include timers, but that is not quite > the same. For example the connections would still only be active for > short periods. > > Just wondering if there is an option to slow down the connections at a > much lower level? > > We did something similar in Perl by putting waits into the low-level > read/write method. > > Or is this something that needs to be done by JMeter? > > S. > Hi Sebastian One can simulate the effect of a slow network connection by temporarily blocking the communication thread with Thread#sleep() while uploading the request entity or/and downloading the response entity. There's no way I can think of to slow down the processing of request/response headers, save forking the code, because HttpClient 3.0 does not expose the underlying HttpConnection instance to the request caller. Oleg PS: there are dedicated HttpClient lists httpclient-dev@jakarta.apache.org and httpclient-user@jakarta.apache.org which you should write to when seeking assistance with HttpClient. I am likely to be the only HttpClient committer who monitors this list. If you want to address HttpClient / HttpComponents project community as a whole and get a more comprehensive response, please post your questions to one of the project's lists > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org