Unverified Commit 82771a67 authored by mikedickey's avatar mikedickey Committed by GitHub
Browse files

Merge pull request #98 from mikedickey/hub_concurrent_connections_fix

Fix for hubserver failure with concurrent connections
parents 8951982f 5200b3c2
......@@ -136,7 +136,7 @@ void UdpHubListener::run()
cout << "JackTrip HUB SERVER: Waiting for client connections..." << endl;
cout << "JackTrip HUB SERVER: Hub auto audio patch setting = " << mHubPatch << endl;
cout << "=======================================================" << endl;
while ( !TcpServer.waitForNewConnection(1000) )
while ( !TcpServer.hasPendingConnections() && !TcpServer.waitForNewConnection(1000) )
{ if (mStopped) { return; } } // block until a new connection is received
cout << "JackTrip HUB SERVER: Client Connection Received!" << endl;
......
......@@ -137,7 +137,7 @@ void setRealtimeProcessPriority();
/// \name JackTrip Server parameters
//@{
/// Maximum Threads that can be run at the same time
const int gMaxThreads = 290; // some pthread limit around 297?
const int gMaxThreads = 1024;
/// Public well-known UDP port to where the clients will connect
const int gServerUdpPort = 4464;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment