diff OrthancServer/Sources/QueryRetrieveHandler.cpp @ 4517:c494ee5d0101

Added "Timeout" parameter everywhere in "/modalities/.../"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Feb 2021 15:27:25 +0100
parents da460bef88f8
children f0038043fb97 7053502fbf97
line wrap: on
line diff
--- a/OrthancServer/Sources/QueryRetrieveHandler.cpp	Tue Feb 16 15:01:13 2021 +0100
+++ b/OrthancServer/Sources/QueryRetrieveHandler.cpp	Mon Feb 22 15:27:25 2021 +0100
@@ -83,6 +83,12 @@
 
       {
         DicomAssociationParameters params(localAet_, modality_);
+
+        if (timeout_ != 0)
+        {
+          params.SetTimeout(timeout_);
+        }
+        
         DicomControlUserConnection connection(params);
         connection.Find(answers_, level_, fixed, findNormalized_);
       }
@@ -98,7 +104,8 @@
     done_(false),
     level_(ResourceType_Study),
     answers_(false),
-    findNormalized_(true)
+    findNormalized_(true),
+    timeout_(0)
   {
   }