diff OrthancFramework/Sources/HttpClient.cpp @ 4522:017ab543e6ef

added field "Timeout" in "OrthancPeers" configuration option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 23 Feb 2021 11:28:28 +0100
parents 60e4f94ec30f
children 9804d6490872
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpClient.cpp	Tue Feb 23 11:01:54 2021 +0100
+++ b/OrthancFramework/Sources/HttpClient.cpp	Tue Feb 23 11:28:28 2021 +0100
@@ -669,6 +669,11 @@
     {
       AddHeader(it->first, it->second);
     }
+
+    if (service.HasTimeout())
+    {
+      SetTimeout(service.GetTimeout());
+    }
   }