diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-12-13 13:43:41 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-12-13 13:43:41 +0000 |
commit | 147ca1d2b3b4790d58aea2d301295f4ee7a656bd (patch) | |
tree | bdf3275ac5a54a6f3cb928a3b2102720dbb80f88 | |
parent | - Fix CML option using -llua. (diff) |
- If the network card's buffer is full, send returns -1 and sets
errno to ENOBUFS, which causes issues with the UDP bandwidth tests.
Check if errno != ENOBUFS after write(2).
- Bump PORTREVISION
Submitted by: Ryan T. Dean <rtdean___tcamail.net>
-rw-r--r-- | benchmarks/iperf/Makefile | 1 | ||||
-rw-r--r-- | benchmarks/iperf/files/patch-src__Client.cpp | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/benchmarks/iperf/Makefile b/benchmarks/iperf/Makefile index cf4ce326358d..dfdee46c37e2 100644 --- a/benchmarks/iperf/Makefile +++ b/benchmarks/iperf/Makefile @@ -7,6 +7,7 @@ PORTNAME= iperf PORTVERSION= 2.0.2 +PORTREVISION= 1 CATEGORIES= benchmarks ipv6 MASTER_SITES= http://dast.nlanr.net/Projects/Iperf2.0/ \ ${MASTER_SITE_SOURCEFORGE} diff --git a/benchmarks/iperf/files/patch-src__Client.cpp b/benchmarks/iperf/files/patch-src__Client.cpp new file mode 100644 index 000000000000..4ef41aa22ee8 --- /dev/null +++ b/benchmarks/iperf/files/patch-src__Client.cpp @@ -0,0 +1,16 @@ +# +# If the network card's buffer is full, send returns -1 and sets +# errno to ENOBUFS, which causes issues with the UDP bandwidth tests. +# Check if errno != ENOBUFS after write(2). +# +--- src/Client.cpp.orig Wed Dec 13 11:22:18 2006 ++++ src/Client.cpp Wed Dec 13 11:22:47 2006 +@@ -215,7 +215,7 @@ + + // perform write + currLen = write( mSettings->mSock, mBuf, mSettings->mBufLen ); +- if ( currLen < 0 ) { ++ if ( currLen < 0 && errno != ENOBUFS ) { + WARN_errno( currLen < 0, "write2" ); + break; + } |