Changeset View
Changeset View
Standalone View
Standalone View
benchmarks/iperf/files/patch-src_Listener.cpp
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- 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" ); | |||||
} | |||||