Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 21217 invoked from network); 21 Dec 2004 19:30:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Dec 2004 19:30:23 -0000 Received: (qmail 85266 invoked by uid 500); 21 Dec 2004 19:30:14 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 85226 invoked by uid 500); 21 Dec 2004 19:30:14 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 85212 invoked by uid 99); 21 Dec 2004 19:30:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from jupiter.hal-nine-zero-zero-zero.net (HELO jupiter.hal-nine-zero-zero-zero.net) (217.160.171.50) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 21 Dec 2004 11:30:11 -0800 Received: (qmail 1867 invoked from network); 21 Dec 2004 19:30:10 -0000 Received: from unknown (HELO p508389BA.dip0.t-ipconnect.de) (80.131.137.186) by jupiter.hal-nine-zero-zero-zero.net with SMTP; 21 Dec 2004 19:30:10 -0000 From: =?iso-8859-15?q?Andr=E9_Malo?= Organization: TIMTOWTDI To: dev@httpd.apache.org Subject: Re: [1.3 PATCH] Select SSL version on ab command line Date: Tue, 21 Dec 2004 20:30:04 +0100 User-Agent: KMail/1.7.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412212030.06287@news.perlig.de> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N * Sander Temme wrote: > The following patch (inline and attached) expands the experimental -s > flag to ab to specify the SSL version used for the benchmark run. Valid > versions are SSLv2, SSLv3, TLSv1 and ANY in which case the program will > use the highest version available. This code is active when httpd is > configured with CFLAGS="-DUSE_SSL" and LDFLAGS="-lssl -lcrypto". > > Downside: getopt(3) doesn't allow for an optional optarg, so a bare -s > no longer works. I could possibly hack around that by scanning the bare > argv string but that seems to me like a significant can of worms. The solution is simple. Use -s for turning on SSL and another flag for the version. I'd suggest anyway to start with 2.1 and then go down the backport chain. That's the desired way. nd -- Already I've seen people (really!) write web URLs in the form: http:\\some.site.somewhere [...] How soon until greengrocers start writing "apples $1\pound" or something? -- Joona I Palaste in clc