diff --git a/eos/EOSReporter.cpp b/eos/EOSReporter.cpp index d4607d7a3667ee423f3bc165ec43d084282f387b..d48967dbf9b3c651c132ba356dd7f6f901ce3571 100644 --- a/eos/EOSReporter.cpp +++ b/eos/EOSReporter.cpp @@ -30,10 +30,11 @@ void EOSReporter::reportArchiveFullyComplete() { XrdCl::Buffer arg (m_query.size()); arg.FromString(m_query); XrdCl::Buffer * resp = nullptr; - XrdCl::XRootDStatus status=m_fs.Query(qcOpaque, arg, resp); + const uint16_t queryTimeout = 15; // Timeout in seconds that is rounded up to the nearest 15 seconds + XrdCl::XRootDStatus status=m_fs.Query(qcOpaque, arg, resp, queryTimeout); delete (resp); cta::exception::XrootCl::throwOnError(status, "In EOSReporter::reportArchiveFullyComplete(): failed to XrdCl::FileSystem::Query()"); } -}} // namespace cta::disk \ No newline at end of file +}} // namespace cta::disk