Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.cpp @ 1284:21ea32170764
Option "DicomAssociationCloseDelay" to set delay before closing DICOM association
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Feb 2015 14:07:07 +0100 |
parents | 88010d8e12cf |
children | 5730f374e4e6 |
comparison
equal
deleted
inserted
replaced
1283:6066529e34c8 | 1284:21ea32170764 |
---|---|
79 scheduler_(Configuration::GetGlobalIntegerParameter("LimitJobs", 10)), | 79 scheduler_(Configuration::GetGlobalIntegerParameter("LimitJobs", 10)), |
80 plugins_(NULL), | 80 plugins_(NULL), |
81 pluginsManager_(NULL) | 81 pluginsManager_(NULL) |
82 { | 82 { |
83 scu_.SetLocalApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC")); | 83 scu_.SetLocalApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC")); |
84 //scu_.SetMillisecondsBeforeClose(1); // The connection is always released | 84 |
85 uint64_t s = Configuration::GetGlobalIntegerParameter("DicomAssociationCloseDelay", 5); // In seconds | |
86 scu_.SetMillisecondsBeforeClose(s * 1000); // Milliseconds are expected here | |
85 | 87 |
86 lua_.Execute(Orthanc::EmbeddedResources::LUA_TOOLBOX); | 88 lua_.Execute(Orthanc::EmbeddedResources::LUA_TOOLBOX); |
87 lua_.SetHttpProxy(Configuration::GetGlobalStringParameter("HttpProxy", "")); | 89 lua_.SetHttpProxy(Configuration::GetGlobalStringParameter("HttpProxy", "")); |
88 } | 90 } |
89 | 91 |