Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 3428:6add197274b1
default value of HttpTimeout is now 60 seconds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Jun 2019 09:44:45 +0200 |
parents | e280ced38a4c |
children | e0e9df6e5c92 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Sat Jun 15 18:06:08 2019 +0000 +++ b/OrthancServer/main.cpp Mon Jun 17 09:44:45 2019 +0200 @@ -1117,7 +1117,11 @@ lock.GetConfiguration().InterpretStringParameterAsPath (lock.GetConfiguration().GetStringParameter("HttpsCACertificates", ""))); HttpClient::SetDefaultVerbose(lock.GetConfiguration().GetBooleanParameter("HttpVerbose", false)); + + // The value "0" below makes the class HttpClient use its default + // value (DEFAULT_HTTP_TIMEOUT = 60 seconds in Orthanc 1.5.7) HttpClient::SetDefaultTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpTimeout", 0)); + HttpClient::SetDefaultProxy(lock.GetConfiguration().GetStringParameter("HttpProxy", "")); DicomUserConnection::SetDefaultTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("DicomScuTimeout", 10));