diff OrthancServer/main.cpp @ 3842:bdbe12aba99f

reducing the default number of threads in the HTTP server from 50 to 10
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 16 Apr 2020 17:03:34 +0200
parents be7df7fe3d80
children 44bfcfdf42e8 ee0a1211419f
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Thu Apr 16 16:58:37 2020 +0200
+++ b/OrthancServer/main.cpp	Thu Apr 16 17:03:34 2020 +0200
@@ -906,7 +906,7 @@
       httpDescribeErrors = lock.GetConfiguration().GetBooleanParameter("HttpDescribeErrors", true);
   
       // HTTP server
-      httpServer.SetThreadsCount(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpThreadsCount", 50));
+      httpServer.SetThreadsCount(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpThreadsCount", 10));
       httpServer.SetPortNumber(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpPort", 8042));
       httpServer.SetRemoteAccessAllowed(lock.GetConfiguration().GetBooleanParameter("RemoteAccessAllowed", false));
       httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", defaultKeepAlive));