diff OrthancServer/main.cpp @ 3126:b1787ba94eef

fix issue #32 (HTTP keep-alive), make CivetWeb the default HTTP server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Jan 2019 09:52:05 +0100
parents fa5ad4368fe3
children e678a2b1a25b 2b81d44e7b33
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue Jan 15 18:46:59 2019 +0100
+++ b/OrthancServer/main.cpp	Wed Jan 16 09:52:05 2019 +0100
@@ -809,7 +809,7 @@
       //httpServer.SetThreadsCount(50);
       httpServer.SetPortNumber(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpPort", 8042));
       httpServer.SetRemoteAccessAllowed(lock.GetConfiguration().GetBooleanParameter("RemoteAccessAllowed", false));
-      httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", false));
+      httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", true));
       httpServer.SetHttpCompressionEnabled(lock.GetConfiguration().GetBooleanParameter("HttpCompressionEnabled", true));
       httpServer.SetAuthenticationEnabled(lock.GetConfiguration().GetBooleanParameter("AuthenticationEnabled", false));