Commit 9f677d1c authored by Luciano Orsini's avatar Luciano Orsini
Browse files

references #188: improved error message

parent 6e32a80b
......@@ -128,8 +128,9 @@ void pt::ibv::I2OMessenger::postConnect ()
catch (pt::exception::Exception & e)
{
isConnected_ = false;
std::cout << "fail to connect queue pair"<< std::endl;
XCEPT_RETHROW(pt::ibv::exception::Exception, "failed to connect endpoint", e);
std::stringstream ss;
ss << "fail to connect queue pair with the following configuration for " << " local sgidindex " << laddress.getSGIDIndex() << " local isglobal " << laddress.getIsGlobal() << " and remote sgidindex " << daddress.getSGIDIndex() << " remote isglobal " << daddress.getIsGlobal() << std::endl;
XCEPT_RETHROW(pt::ibv::exception::Exception, ss.str(), e);
}
info->endConnectionTime = toolbox::TimeVal::gettimeofday() ;
......
......@@ -555,6 +555,7 @@ pt::Address::Reference pt::ibv::PeerTransport::createAddress (std::map<std::stri
//return this->createAddress(url, service, ibport);
size_t ibPath = toolbox::toUnsignedLong(path);
//std::cout << "Debug statement " << "create address with url, service, ibPortNum, ibPath, sgidindex, isglobal " << url << " " << service<< " " << ibPortNum<< " " << ibPath<< " " << sgidindex<< " " << isglobal << std::endl;
return pt::Address::Reference(new pt::ibv::Address(url, service, ibPortNum, ibPath, sgidindex, isglobal));
}
else
......
......@@ -7,7 +7,7 @@
<xc:Context url="http://d3vrubu-c2e34-41-01.cms:1972">
<xc:Endpoint protocol="ibv" service="i2o" hostname="d3vrubu-c2e34-41-01.cms" port="50000" network="fdr" sgindex="3"/>
<xc:Endpoint protocol="ibv" service="i2o" hostname="d3vrubu-c2e34-41-01.cms" port="50000" network="fdr" sgidindex="3"/>
<xc:Application class="pt::ibv::Application" id="11" instance="0" network="local">
<properties xmlns="urn:xdaq-application:pt::ibv::Application" xsi:type="soapenc:Struct">
......@@ -52,7 +52,7 @@
<xc:Context url="http://d3vrubu-c2e34-06-01.cms:1972">
<xc:Endpoint protocol="ibv" service="i2o" hostname="d3vrubu-c2e34-06-01.cms" port="30010" network="fdr" sgindex="3" />
<xc:Endpoint protocol="ibv" service="i2o" hostname="d3vrubu-c2e34-06-01.cms" port="30010" network="fdr" sgidindex="3" />
<xc:Application class="pt::ibv::Application" id="12" instance="0" network="local">
<properties xmlns="urn:xdaq-application:pt::ibv::Application" xsi:type="soapenc:Struct">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment