mirror of
https://github.com/MariaDB/server.git
synced 2025-12-04 17:23:46 +03:00
Merge perch.ndb.mysql.com:/home/jonas/src/41-work
into perch.ndb.mysql.com:/home/jonas/src/50-work ndb/include/util/SocketServer.hpp: Auto merged ndb/src/common/transporter/Transporter.cpp: Auto merged ndb/src/common/util/SocketServer.cpp: Auto merged ndb/src/mgmsrv/Services.cpp: Auto merged support-files/mysql.spec.sh: Auto merged
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
#define DEBUG(x) ndbout << x << endl;
|
||||
|
||||
SocketServer::SocketServer(int maxSessions) :
|
||||
SocketServer::SocketServer(unsigned maxSessions) :
|
||||
m_sessions(10),
|
||||
m_services(5)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ SocketServer::setup(SocketServer::Service * service,
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user