summaryrefslogtreecommitdiffstats
path: root/www/gatling
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-02-01 12:11:48 +0000
committervs <vs@FreeBSD.org>2005-02-01 12:11:48 +0000
commitda89e987360d72d7f954ec8dfe14079ee79659b8 (patch)
tree75b6d46dcabe41a9da28d1ed10d912b2e7b349e6 /www/gatling
parent85b44016750cbda9ddc3ec53c9e1dda7dbc44d56 (diff)
downloadFreeBSD-ports-da89e987360d72d7f954ec8dfe14079ee79659b8.zip
FreeBSD-ports-da89e987360d72d7f954ec8dfe14079ee79659b8.tar.gz
Correct an off-by-one error in HTTP range handling.
Patch obtained from: gatling CVS PR: ports/76913 Submitted by: Thomas-Martin Seck (maintainer)
Diffstat (limited to 'www/gatling')
-rw-r--r--www/gatling/Makefile2
-rw-r--r--www/gatling/files/patch-gatling.c19
2 files changed, 20 insertions, 1 deletions
diff --git a/www/gatling/Makefile b/www/gatling/Makefile
index 7006f50..9bb02e5 100644
--- a/www/gatling/Makefile
+++ b/www/gatling/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gatling
PORTVERSION= 0.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www benchmarks ftp ipv6
MASTER_SITES= http://dl.fefe.de/
diff --git a/www/gatling/files/patch-gatling.c b/www/gatling/files/patch-gatling.c
new file mode 100644
index 0000000..8952ed9
--- /dev/null
+++ b/www/gatling/files/patch-gatling.c
@@ -0,0 +1,19 @@
+--- gatling.c.orig Wed Jul 28 15:23:51 2004
++++ gatling.c Mon Jan 31 18:42:03 2005
+@@ -1261,6 +1261,7 @@ e404:
+ ++c;
+ if ((i=scan_ulonglong(c,&range_last))) {
+ if (!i) goto rangeerror;
++ ++range_last;
+ }
+ }
+ } else {
+@@ -1311,7 +1312,7 @@ rangeerror:
+ c+=fmt_str(c,"\r\nContent-Range: bytes ");
+ c+=fmt_ulonglong(c,range_first);
+ c+=fmt_str(c,"-");
+- c+=fmt_ulonglong(c,range_last);
++ c+=fmt_ulonglong(c,range_last-1);
+ c+=fmt_str(c,"/");
+ c+=fmt_ulonglong(c,ss.st_size);
+ }
OpenPOWER on IntegriCloud