head	1.5;
access;
symbols
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.4
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1;
locks; strict;
comment	@# @;


1.5
date	2006.09.25.10.54.49;	author garga;	state dead;
branches;
next	1.4;

1.4
date	2005.07.15.21.51.10;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2003.12.14.05.17.54;	author silby;	state Exp;
branches;
next	1.2;

1.2
date	2001.04.27.17.01.05;	author mi;	state dead;
branches;
next	1.1;

1.1
date	2000.07.29.22.38.40;	author kris;	state Exp;
branches;
next	;


desc
@@


1.5
log
@- Update to 12mar2006 version
- Respect PREFIX
- Cleanup

PR:		ports/102819 (based-on)
Submitted by:	Hung-Je Lou <snese@@csie.isu.edu.tw>
@
text
@--- http_load.c.bak	Fri Jul 15 23:49:26 2005
+++ http_load.c	Fri Jul 15 23:49:33 2005
@@@@ -655,11 +655,11 @@@@
     (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,
+	    stderr, "%s: getaddrinfo %s - %s\n", argv0, hostname,
 	    gai_strerror( gaierr ) );
 	exit( 1 );
 	}
@@@@ -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;
@@@@ -825,6 +825,7 @@@@
     ClientData client_data;
     int flags;
     int sip_num;
+    int rcv_bytes, error;
 
     /* Start filling in the connection slot. */
     connections[cnum].url_num = url_num;
@@@@ -863,6 +864,16 @@@@
 	perror( urls[url_num].url_str );
 	(void) close( connections[cnum].conn_fd );
 	return;
+	}
+
+    /* Shrink the recieve window to better imitate a slow connection. */
+    if ( do_throttle )
+	{
+	rcv_bytes = 2048;
+	error = setsockopt(connections[cnum].conn_fd, SOL_SOCKET, SO_RCVBUF,
+		(void *)&rcv_bytes, sizeof(rcv_bytes));
+	if (error)
+		perror("Setsockopt problem:");
 	}
 
     if ( num_sips > 0 )
@


1.4
log
@- Add a patch that fixes -proxy argument

PR:		ports/83427
Submitted by:	Antony Mawer <gnats@@mawer.org>
@
text
@@


1.3
log
@Add a patch to the port which improves the -throttle option by
shrinking the receive socket buffer size to 2K.

The patch has been submitted to http_load's author for possible
inclusion in future versions of http_load.
@
text
@d1 36
a36 2
--- http_load.c.old	Tue Dec  9 02:22:07 2003
+++ http_load.c	Tue Dec  9 03:43:39 2003
@


1.2
log
@	. Upgrade to the latest version.
	. Change the port versioning scheme from the seemingly static 1.0
	  to one based on the date (the way author releases it).
	. Enable the SSL (https) support by default (unless NO_OPENSSL is set).
	. Use Makefile.bsd instead of patching the software's Makefile --
	  the new Makefile.bsd is nearly twice smaller than the old patch-aa.
	. Add the author-approved patch-idle, which allows to specify the
	  timeout at run-time (on command line), instead of at compile-time.

The maintainer submitted the PR below three weeks ago, and agreed for me
to close it with this commit.

Approved by:	maintainer
PR:		ports/26429	(related)
@
text
@d1 7
a7 3
--- Makefile.orig	Thu Sep  9 21:13:21 1999
+++ Makefile	Sat Jul 29 15:36:30 2000
@@@@ -16,9 +16,10 @@@@
d9 17
a25 11
 BINDIR =	/usr/local/bin
 MANDIR =	/usr/local/man/man1
-CC =		gcc
-#CFLAGS =	-O $(SSL_DEFS) $(SSL_INC)
-CFLAGS =	-g $(SSL_DEFS) $(SSL_INC)
+CC ?=		gcc
+CFLAGS ?=	-O
+CFLAGS +=	$(SSL_DEFS) $(SSL_INC)
+#CFLAGS =	-g $(SSL_DEFS) $(SSL_INC)
 #LDFLAGS =	-s $(SSL_LIBS) $(SYSV_LIBS)
 LDFLAGS =	-g $(SSL_LIBS) $(SYSV_LIBS)
d27 1
@


1.1
log
@Respect CC and CFLAGS
@
text
@@

