mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
- Utilize NOPORTDOCS
- Fix a filedescriptor leak that occured when doing HTTP pipelining - Bump PORTREVISION PR: ports/63452 Submitted by: maintainer
This commit is contained in:
parent
1b9c85e3ce
commit
3305bcdcad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=102326
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= gatling
|
||||
PORTVERSION= 0.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www benchmarks
|
||||
MASTER_SITES= http://dl.fefe.de/
|
||||
|
||||
@ -23,8 +24,10 @@ MAKE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -lowfat" \
|
||||
bin= dl gatling
|
||||
examples= run-gatling
|
||||
examplesdir= ${EXAMPLESDIR:S,^${PREFIX}/,,}
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= CHANGES README README.ftp README.http README.performance \
|
||||
README.prefetch
|
||||
.endif
|
||||
|
||||
OPTIONS= BENCHMARKS "Install system benchmark programs" on
|
||||
|
||||
|
22
www/gatling/files/patch-gatling.c
Normal file
22
www/gatling/files/patch-gatling.c
Normal file
@ -0,0 +1,22 @@
|
||||
! Fix a filedescriptor leak. This change requires libowfat-0.18
|
||||
! Obtained from gatling cvs
|
||||
--- gatling.c.orig Fri Feb 27 16:09:53 2004
|
||||
+++ gatling.c Fri Feb 27 16:13:28 2004
|
||||
@@ -876,7 +876,7 @@
|
||||
c+=fmt_str(c,"\r\n\r\n");
|
||||
iob_addbuf_free(&h->iob,h->hdrbuf,c - h->hdrbuf);
|
||||
if (!head)
|
||||
- iob_addfile(&h->iob,fd,range_first,range_last-range_first);
|
||||
+ iob_addfile_close(&h->iob,fd,range_first,range_last-range_first);
|
||||
if (logging) {
|
||||
if (h->hdrbuf[9]=='3') {
|
||||
buffer_puts(buffer_1,head?"HEAD/304 ":"GET/304 ");
|
||||
@@ -1034,7 +1034,7 @@
|
||||
range_last=ss.st_size;
|
||||
range_first=h->ftp_rest; h->ftp_rest=0;
|
||||
if (range_first>range_last) range_first=range_last;
|
||||
- iob_addfile(&b->iob,b->filefd,range_first,range_last-range_first);
|
||||
+ iob_addfile_close(&b->iob,b->filefd,range_first,range_last-range_first);
|
||||
if (logging) {
|
||||
buffer_putulonglong(buffer_1,range_last-range_first);
|
||||
buffer_putspace(buffer_1);
|
Loading…
Reference in New Issue
Block a user