Explorar o código

Merge pull request #7703 from mckellyln/winsomaxconn

HPCC-14094 Somaxconn setting for Windows Visual Studio build

Reviewed-By: Xiaoming Wang <xiaoming.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=9) %!d(string=hai) anos
pai
achega
b2a20e5ad8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      system/mp/mpcomm.cpp

+ 1 - 1
system/mp/mpcomm.cpp

@@ -1816,7 +1816,7 @@ CMPConnectThread::CMPConnectThread(CMPServer *_parent, unsigned port)
             WARNLOG("MP: kernel listen queue backlog setting (somaxconn=%d) is lower than environment mpSoMaxConn (%d) setting and should be increased", kernSoMaxConn, mpSoMaxConn);
     }
     if (!mpSoMaxConn)
-        mpSoMaxConn = SOMAXCONN;
+        mpSoMaxConn = DEFAULT_LISTEN_QUEUE_SIZE;
     if (!port)
     {
         // need to connect early to resolve clash