From: Date: May 8 2006 3:04pm Subject: bk commit into 5.1 tree (tomas:1.2021) BUG#17150 List-Archive: http://lists.mysql.com/commits/6094 X-Bug: 17150 Message-Id: <20060508130407.D95CA7FF69@poseidon.mysql.com> Below is the list of changes that have just been committed into a local 5.1 repository of tomas. When tomas does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.2021 06/05/08 15:03:12 tomas@stripped +2 -0 Bug #17150 Cluster doesn't allow max number of connections storage/ndb/src/common/util/SocketServer.cpp 1.19 06/05/08 15:02:51 tomas@stripped +2 -2 Bug #17150 Cluster doesn't allow max number of connections storage/ndb/include/util/SocketServer.hpp 1.10 06/05/08 15:02:50 tomas@stripped +1 -1 Bug #17150 Cluster doesn't allow max number of connections # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: tomas # Host: poseidon.ndb.mysql.com # Root: /home/tomas/wl2325-alcatel --- 1.9/storage/ndb/include/util/SocketServer.hpp 2005-07-19 20:40:16 +02:00 +++ 1.10/storage/ndb/include/util/SocketServer.hpp 2006-05-08 15:02:50 +02:00 @@ -74,7 +74,7 @@ /** * Constructor / Destructor */ - SocketServer(int maxSessions = 32); + SocketServer(unsigned maxSessions = ~(unsigned)0); ~SocketServer(); /** --- 1.18/storage/ndb/src/common/util/SocketServer.cpp 2005-07-19 20:40:17 +02:00 +++ 1.19/storage/ndb/src/common/util/SocketServer.cpp 2006-05-08 15:02:51 +02:00 @@ -27,7 +27,7 @@ #define DEBUG(x) ndbout << x << endl; -SocketServer::SocketServer(int maxSessions) : +SocketServer::SocketServer(unsigned maxSessions) : m_sessions(10), m_services(5) { @@ -134,7 +134,7 @@ } DBUG_PRINT("info",("bound to %u",ntohs(servaddr.sin_port))); - if (listen(sock, m_maxSessions) == -1){ + if (listen(sock, m_maxSessions > 32 ? 32 : m_maxSessions) == -1){ DBUG_PRINT("error",("listen() - %d - %s", errno, strerror(errno))); NDB_CLOSE_SOCKET(sock);