diff OrthancServer/main.cpp @ 1590:ba0226474e22

New configuration option: "HttpTimeout" to set the default timeout for HTTP requests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Aug 2015 17:51:03 +0200
parents 3309878b3e16
children d73124f6b439
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Wed Aug 26 17:43:00 2015 +0200
+++ b/OrthancServer/main.cpp	Wed Aug 26 17:51:03 2015 +0200
@@ -524,6 +524,7 @@
 {
   ServerContext context(database, storageArea);
 
+  HttpClient::SetDefaultTimeout(Configuration::GetGlobalIntegerParameter("HttpTimeout", 0));
   context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false));
   context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true));