diff OrthancServer/main.cpp @ 3180:07a2f637b76d

new option: "HttpThreadsCount" to set the number of threads in the embedded HTTP server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Jan 2019 17:50:51 +0100
parents b79ec21747a1
children 56ea9c476dba
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Wed Jan 30 17:12:15 2019 +0100
+++ b/OrthancServer/main.cpp	Wed Jan 30 17:50:51 2019 +0100
@@ -814,7 +814,7 @@
       httpDescribeErrors = lock.GetConfiguration().GetBooleanParameter("HttpDescribeErrors", true);
   
       // HTTP server
-      //httpServer.SetThreadsCount(50);
+      httpServer.SetThreadsCount(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpThreadsCount", 50));
       httpServer.SetPortNumber(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpPort", 8042));
       httpServer.SetRemoteAccessAllowed(lock.GetConfiguration().GetBooleanParameter("RemoteAccessAllowed", false));
       httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", defaultKeepAlive));