mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-30 13:47:10 +01:00 
			
		
		
		
	Peroperly use the maxThreads specified in a TCPServerParameters to have the TCPServerDispatcher create a Threadpool with the correct capacity.
This commit is contained in:
		| @@ -197,6 +197,13 @@ int TCPServerDispatcher::currentThreads() const | ||||
| 	return _currentThreads; | ||||
| } | ||||
|  | ||||
| int TCPServerDispatcher::maxThreads() const | ||||
| { | ||||
| 	FastMutex::ScopedLock lock(_mutex); | ||||
| 	 | ||||
| 	return _threadPool.capacity(); | ||||
| } | ||||
|  | ||||
|  | ||||
| int TCPServerDispatcher::totalConnections() const | ||||
| { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 karlr42
					karlr42