comparison 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
comparison
equal deleted inserted replaced
1589:334d3a92ed83 1590:ba0226474e22
522 IStorageArea& storageArea, 522 IStorageArea& storageArea,
523 OrthancPlugins *plugins) 523 OrthancPlugins *plugins)
524 { 524 {
525 ServerContext context(database, storageArea); 525 ServerContext context(database, storageArea);
526 526
527 HttpClient::SetDefaultTimeout(Configuration::GetGlobalIntegerParameter("HttpTimeout", 0));
527 context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false)); 528 context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false));
528 context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true)); 529 context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true));
529 530
530 try 531 try
531 { 532 {