You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2012/10/09 20:46:56 UTC
svn commit: r1396190 -
/thrift/trunk/lib/cpp/src/thrift/transport/TPipeServer.cpp
Author: roger
Date: Tue Oct 9 18:46:55 2012
New Revision: 1396190
URL: http://svn.apache.org/viewvc?rev=1396190&view=rev
Log:
THRIFT-1716 max allowed connections should be PIPE_UNLIMITED_INSTANCES
Patch: Jens Geyer
Modified:
thrift/trunk/lib/cpp/src/thrift/transport/TPipeServer.cpp
Modified: thrift/trunk/lib/cpp/src/thrift/transport/TPipeServer.cpp
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/thrift/transport/TPipeServer.cpp?rev=1396190&r1=1396189&r2=1396190&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/thrift/transport/TPipeServer.cpp (original)
+++ thrift/trunk/lib/cpp/src/thrift/transport/TPipeServer.cpp Tue Oct 9 18:46:55 2012
@@ -53,11 +53,11 @@ TPipeServer::TPipeServer(const std::stri
bufsize_(bufsize),
Pipe_(INVALID_HANDLE_VALUE),
isAnonymous(false)
- { //Restrict maxconns_ to 1-255
+ { //Restrict maxconns_ to 1-PIPE_UNLIMITED_INSTANCES
if(maxconnections == 0)
maxconns_ = 1;
- else if (maxconnections > 255)
- maxconns_ = 255;
+ else if (maxconnections > PIPE_UNLIMITED_INSTANCES)
+ maxconns_ = PIPE_UNLIMITED_INSTANCES;
else
maxconns_ = maxconnections;