NetBSD Problem Report #26541
Received: (qmail 4919 invoked by uid 605); 3 Aug 2004 22:17:02 -0000
Message-Id: <200408032126.i73LQC817310@seahorse.eng.bluecoat.com>
Date: Tue, 3 Aug 2004 14:26:12 -0700 (PDT)
From: Mike Grupenhoff <mg-pkgsrc@munge.com>
Sender: gnats-bugs-owner@NetBSD.org
To: gnats-bugs@gnats.netbsd.org
Subject: www/http_load proxy support broken (with patch)
X-Send-Pr-Version: 3.95
>Number: 26541
>Category: pkg
>Synopsis: www/http_load proxy support broken (with patch)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: cube
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 03 22:18:00 +0000 2004
>Closed-Date: Wed Aug 04 16:14:02 +0000 2004
>Last-Modified: Wed Aug 04 16:29:01 +0000 2004
>Originator: Mike Grupenhoff
>Release: NetBSD 1.6
>Organization:
>Environment:
System: NetBSD seahorse 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The -proxy option to http_load doesn't do anything. This appears
to be due to the IPV6 support added.
>How-To-Repeat:
http_load -proxy <proxy>:<port> -parallel 1 -seconds 10 urls
notice that the requests go directly to the server.
>Fix:
--- http_load.c.orig Tue Aug 3 14:16:55 2004
+++ http_load.c Tue Aug 3 14:18:23 2004
@@ -655,8 +655,8 @@
(void) memset( &hints, 0, sizeof(hints) );
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
- (void) snprintf( portstr, sizeof(portstr), "%d", (int) urls[url_num].port );
- if ( (gaierr = getaddrinfo( urls[url_num].hostname, portstr, &hints, &ai )) != 0 )
+ (void) snprintf( portstr, sizeof(portstr), "%d", (int) port );
+ if ( (gaierr = getaddrinfo( hostname, portstr, &hints, &ai )) != 0 )
{
(void) fprintf(
stderr, "%s: getaddrinfo %s - %s\n", argv0, urls[url_num].hostname,
@@ -724,15 +724,15 @@
(void) fprintf(
stderr, "%s: no valid address found for host %s\n", argv0,
- urls[url_num].hostname );
+ hostname );
exit( 1 );
#else /* USE_IPV6 */
- he = gethostbyname( urls[url_num].hostname );
+ he = gethostbyname( hostname );
if ( he == (struct hostent*) 0 )
{
- (void) fprintf( stderr, "%s: unknown host - %s\n", argv0, urls[url_num].hostname );
+ (void) fprintf( stderr, "%s: unknown host - %s\n", argv0, hostname );
exit( 1 );
}
urls[url_num].sock_family = urls[url_num].sa.sin_family = he->h_addrtype;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: cube
State-Changed-When: Wed Aug 4 12:22:15 UTC 2004
State-Changed-Why:
Patch was committed.
Responsible-Changed-From-To: pkg-manager->cube
Responsible-Changed-By: cube
Responsible-Changed-When: Wed Aug 4 12:22:15 UTC 2004
Responsible-Changed-Why:
I'm handling it.
From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/26541 CVS commit: pkgsrc/www/http_load
Date: Wed, 4 Aug 2004 12:21:02 +0000 (UTC)
Module Name: pkgsrc
Committed By: cube
Date: Wed Aug 4 12:21:02 UTC 2004
Modified Files:
pkgsrc/www/http_load: Makefile distinfo
Added Files:
pkgsrc/www/http_load/patches: patch-ab
Log Message:
Make http_load actually use the -proxy parameter. Fixes PR 26541 by
Mike Grupenhoff.
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 pkgsrc/www/http_load/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/www/http_load/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/www/http_load/patches/patch-ab
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: cube@cubidou.net
To: gnats-bugs@gnats.netbsd.org
Cc: mg-pkgsrc@munge.com
Subject: Re: pkg/26541
Date: Wed, 4 Aug 2004 14:24:27 +0200
On Wed, Aug 04, 2004 at 12:22:54PM -0000, cube@netbsd.org wrote:
> Synopsis: www/http_load proxy support broken (with patch)
>
> State-Changed-From-To: open->feedback
> State-Changed-By: cube
> State-Changed-When: Wed Aug 4 12:22:15 UTC 2004
> State-Changed-Why:
> Patch was committed.
Forgot to say: can you tell me if it works ok for you now?
My tests were quick...
Quentin Garnier.
State-Changed-From-To: feedback->closed
State-Changed-By: cube
State-Changed-When: Wed Aug 4 16:13:19 UTC 2004
State-Changed-Why:
Submitter says the issue is fixed now.
Thanks for the PR with a patch!
From: "Mike Grupenhoff" <mg@munge.com>
To: <cube@cubidou.net>, <gnats-bugs@gnats.netbsd.org>
Cc: <mg-pkgsrc@munge.com>
Subject: Re: pkg/26541
Date: Wed, 4 Aug 2004 09:10:50 -0700
cube@cubidou.net <cube@cubidou.net> wrote:
> On Wed, Aug 04, 2004 at 12:22:54PM -0000, cube@netbsd.org wrote:
>> Synopsis: www/http_load proxy support broken (with patch)
>>
>> State-Changed-From-To: open->feedback
>> State-Changed-By: cube
>> State-Changed-When: Wed Aug 4 12:22:15 UTC 2004
>> State-Changed-Why:
>> Patch was committed.
>
> Forgot to say: can you tell me if it works ok for you now?
> My tests were quick...
Yep, works great for me now. Thanks!
mike
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.