mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
FairMQ: Fix Operation not permitted error
This commit is contained in:
parent
5b3a5b9709
commit
8f5b888314
|
@ -258,8 +258,8 @@ auto Context::InsertAddressVector(sockaddr_in address) -> fi_addr_t
|
||||||
{
|
{
|
||||||
fi_addr_t mappedAddress;
|
fi_addr_t mappedAddress;
|
||||||
auto ret = fi_av_insert(fOfiAddressVector, &address, 1, &mappedAddress, 0, nullptr);
|
auto ret = fi_av_insert(fOfiAddressVector, &address, 1, &mappedAddress, 0, nullptr);
|
||||||
if (ret != FI_SUCCESS)
|
if (ret != 1)
|
||||||
throw ContextError{tools::ToString("Failed to insert address into ofi address vector, reason: ", fi_strerror(ret))};
|
throw ContextError{tools::ToString("Failed to insert address into ofi address vector")};
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ auto Socket::ProcessDataAddressAnnouncement(std::unique_ptr<ControlMessage> ctrl
|
||||||
remoteAddr.sin_port = daa.port();
|
remoteAddr.sin_port = daa.port();
|
||||||
remoteAddr.sin_addr.s_addr = daa.ipv4();
|
remoteAddr.sin_addr.s_addr = daa.ipv4();
|
||||||
|
|
||||||
LOG(debug) << Context::ConvertAddress(remoteAddr);
|
LOG(debug) << "Data address announcement of remote ofi endpoint received: " << Context::ConvertAddress(remoteAddr);
|
||||||
fRemoteDataAddr = fContext.InsertAddressVector(remoteAddr);
|
fRemoteDataAddr = fContext.InsertAddressVector(remoteAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user