diff options
author | Mike Silbersack <silby@FreeBSD.org> | 2003-12-14 05:17:54 +0000 |
---|---|---|
committer | Mike Silbersack <silby@FreeBSD.org> | 2003-12-14 05:17:54 +0000 |
commit | 701c04743102922fe68a59548a5778a5c9ffda32 (patch) | |
tree | 9b3811fb13d8d3f82d16aeb255176b7b0d67e6ba /www/http_load | |
parent | 999ef4c5bbf282c395c69c8fb9de1a82d81ae446 (diff) | |
download | ports-701c04743102922fe68a59548a5778a5c9ffda32.tar.gz ports-701c04743102922fe68a59548a5778a5c9ffda32.zip |
Notes
Diffstat (limited to 'www/http_load')
-rw-r--r-- | www/http_load/Makefile | 1 | ||||
-rw-r--r-- | www/http_load/files/patch-aa | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/www/http_load/Makefile b/www/http_load/Makefile index 838ed9d3618e..7b66bba7b7d9 100644 --- a/www/http_load/Makefile +++ b/www/http_load/Makefile @@ -7,6 +7,7 @@ PORTNAME= http_load PORTVERSION= 20020104 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.acme.com/software/http_load/ DISTNAME= ${PORTNAME}-04jan2002 diff --git a/www/http_load/files/patch-aa b/www/http_load/files/patch-aa new file mode 100644 index 000000000000..c4f1622eb8cf --- /dev/null +++ b/www/http_load/files/patch-aa @@ -0,0 +1,27 @@ +--- http_load.c.old Tue Dec 9 02:22:07 2003 ++++ http_load.c Tue Dec 9 03:43:39 2003 +@@ -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 ) |