Index: benchmarks/iperf/Makefile =================================================================== --- benchmarks/iperf/Makefile +++ benchmarks/iperf/Makefile @@ -3,6 +3,7 @@ PORTNAME= iperf PORTVERSION= 2.0.12 +PORTREVISION= 1 CATEGORIES= benchmarks MASTER_SITES= SF/${PORTNAME}2 Index: benchmarks/iperf/files/patch-src_Listener.cpp =================================================================== --- benchmarks/iperf/files/patch-src_Listener.cpp +++ benchmarks/iperf/files/patch-src_Listener.cpp @@ -0,0 +1,19 @@ +--- src/Listener.cpp.orig 2018-07-04 10:57:36 UTC ++++ src/Listener.cpp +@@ -74,6 +74,7 @@ + #define HEADERS() + + #include "headers.h" ++#include "limits.h" + #include "Listener.hpp" + #include "SocketAddr.h" + #include "PerfSocket.hpp" +@@ -390,7 +391,7 @@ void Listener::Listen( ) { + // listen for connections (TCP only). + // default backlog traditionally 5 + if ( !isUDP( mSettings ) ) { +- rc = listen( mSettings->mSock, 5 ); ++ rc = listen( mSettings->mSock, INT_MAX ); + WARN_errno( rc == SOCKET_ERROR, "listen" ); + } +