comparison 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
comparison
equal deleted inserted replaced
4516:671ee7c1fd46 4517:c494ee5d0101
81 // Secondly, possibly fix the query with the user-provider Lua callback 81 // Secondly, possibly fix the query with the user-provider Lua callback
82 FixQueryLua(fixed, context_, modality_.GetApplicationEntityTitle()); 82 FixQueryLua(fixed, context_, modality_.GetApplicationEntityTitle());
83 83
84 { 84 {
85 DicomAssociationParameters params(localAet_, modality_); 85 DicomAssociationParameters params(localAet_, modality_);
86
87 if (timeout_ != 0)
88 {
89 params.SetTimeout(timeout_);
90 }
91
86 DicomControlUserConnection connection(params); 92 DicomControlUserConnection connection(params);
87 connection.Find(answers_, level_, fixed, findNormalized_); 93 connection.Find(answers_, level_, fixed, findNormalized_);
88 } 94 }
89 95
90 done_ = true; 96 done_ = true;
96 context_(context), 102 context_(context),
97 localAet_(context.GetDefaultLocalApplicationEntityTitle()), 103 localAet_(context.GetDefaultLocalApplicationEntityTitle()),
98 done_(false), 104 done_(false),
99 level_(ResourceType_Study), 105 level_(ResourceType_Study),
100 answers_(false), 106 answers_(false),
101 findNormalized_(true) 107 findNormalized_(true),
108 timeout_(0)
102 { 109 {
103 } 110 }
104 111
105 112
106 void QueryRetrieveHandler::SetModality(const std::string& symbolicName) 113 void QueryRetrieveHandler::SetModality(const std::string& symbolicName)