diff OrthancServer/main.cpp @ 3537:9cc09f4c0fa9

New configuration option: "HttpRequestTimeout"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Oct 2019 13:16:15 +0200
parents 41365091a41e
children e327b44780bb 94f4a18a79cc
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Sun Oct 06 09:54:30 2019 +0200
+++ b/OrthancServer/main.cpp	Thu Oct 10 13:16:15 2019 +0200
@@ -823,6 +823,7 @@
       httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", defaultKeepAlive));
       httpServer.SetHttpCompressionEnabled(lock.GetConfiguration().GetBooleanParameter("HttpCompressionEnabled", true));
       httpServer.SetTcpNoDelay(lock.GetConfiguration().GetBooleanParameter("TcpNoDelay", true));
+      httpServer.SetRequestTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpRequestTimeout", 30));
 
       // Let's assume that the HTTP server is secure
       context.SetHttpServerSecure(true);