From f8758643f010346be353b328c86484a1145f7450 Mon Sep 17 00:00:00 2001 From: Michael Davis <michael.davis@cern.ch> Date: Wed, 26 Sep 2018 17:18:34 +0200 Subject: [PATCH] [XrdSsiPb] Updates submodule to v0.23 Adds better cleanup of Requests. The Send() method is synchronous as before, for Metadata requests. The new SendAsync() method is for Data and Stream requests, where the Response is returned asynchronously. The framework now provides a DataFuture object for the asynch case. After the Request has been sent, call DataFuture::wait() to clean up the Request object once all data has been received. --- cmdline/CtaAdminCmd.cpp | 2 +- xrootd-ssi-protobuf-interface | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdline/CtaAdminCmd.cpp b/cmdline/CtaAdminCmd.cpp index ae6a894226..9ebe927dd9 100644 --- a/cmdline/CtaAdminCmd.cpp +++ b/cmdline/CtaAdminCmd.cpp @@ -183,7 +183,7 @@ void CtaAdminCmd::send() const // Send the Request to the Service and get a Response cta::xrd::Response response; - auto stream_future = cta_service.Send(m_request, response); + auto stream_future = cta_service.SendAsync(m_request, response); // Handle responses switch(response.type()) diff --git a/xrootd-ssi-protobuf-interface b/xrootd-ssi-protobuf-interface index b92937743e..7fd284d077 160000 --- a/xrootd-ssi-protobuf-interface +++ b/xrootd-ssi-protobuf-interface @@ -1 +1 @@ -Subproject commit b92937743ef5f2eaf1e30336519c0e7ee055e6b2 +Subproject commit 7fd284d077ad45ec42858845c5ee2c3899460c1d -- GitLab