aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/iperf/files/patch-src_Client.cpp
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-07-27 15:09:11 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-07-27 15:09:11 +0000
commit56bf85096cc89f91d28671b5d93b4172240263bc (patch)
tree0574ce9eee45d627f943b80b2445882a762b52af /benchmarks/iperf/files/patch-src_Client.cpp
parent26b078f5434c79c09183a623d0c9897d12fd26c9 (diff)
Cleanup patches, category benchmarks
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
Diffstat (limited to 'benchmarks/iperf/files/patch-src_Client.cpp')
-rw-r--r--benchmarks/iperf/files/patch-src_Client.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmarks/iperf/files/patch-src_Client.cpp b/benchmarks/iperf/files/patch-src_Client.cpp
new file mode 100644
index 000000000000..32044bb6f413
--- /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 2010-04-01 20:23:17 UTC
++++ src/Client.cpp
+@@ -157,7 +157,7 @@ void Client::RunTCP( void ) {
+
+ // perform write
+ currLen = write( mSettings->mSock, mBuf, mSettings->mBufLen );
+- if ( currLen < 0 ) {
++ if ( currLen < 0 && errno != ENOBUFS ) {
+ WARN_errno( currLen < 0, "write2" );
+ break;
+ }