diff --git a/cmdline/CTACmdMain.cpp b/cmdline/CTACmdMain.cpp index fb8453702d2c6f904712e44eace59f26fe6bb304..e97a0d4bd48088bf02203f14ecfb43c3a612b4f8 100644 --- a/cmdline/CTACmdMain.cpp +++ b/cmdline/CTACmdMain.cpp @@ -21,6 +21,8 @@ #include "common/dataStructures/FrontendReturnCode.hpp" #include "XrdCl/XrdClCopyProcess.hh" +#include "XrdCl/XrdClEnv.hh" +#include "XrdCl/XrdClDefaultEnv.hh" #include <cryptopp/base64.h> #include <cryptopp/osrng.h> @@ -116,6 +118,11 @@ int sendCommand(const int argc, const char **argv) { XrdCl::PropertyList results; XrdCl::CopyProcess copyProcess; + //ConnectionWindow timeout. This is redundant now because we already have a timeout in place with std::async + //but may be handy in the future if we change the frontend xroot paradigm (for example to XrdSsi) + //XrdCl::Env *env = XrdCl::DefaultEnv::GetEnv(); + //env->PutInt("ConnectionWindow", 1); + XrdCl::XRootDStatus status = copyProcess.AddJob(properties, &results); if(!status.IsOK()) {