Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Tue Feb 03 13:15:46 2015 +0100 +++ b/OrthancServer/ServerContext.cpp Tue Feb 03 14:07:07 2015 +0100 @@ -81,7 +81,9 @@ pluginsManager_(NULL) { scu_.SetLocalApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC")); - //scu_.SetMillisecondsBeforeClose(1); // The connection is always released + + uint64_t s = Configuration::GetGlobalIntegerParameter("DicomAssociationCloseDelay", 5); // In seconds + scu_.SetMillisecondsBeforeClose(s * 1000); // Milliseconds are expected here lua_.Execute(Orthanc::EmbeddedResources::LUA_TOOLBOX); lua_.SetHttpProxy(Configuration::GetGlobalStringParameter("HttpProxy", ""));