mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Fix lifetime of memory_region
This commit is contained in:
parent
2eb09df1f7
commit
53a5456d8c
|
@ -366,7 +366,7 @@ auto Socket::OnSend(azmq::message& zmsg, size_t /*bytes_transferred*/) -> void
|
||||||
asiofi::memory_region mr(*fOfiDomain, ctrl_msg, asiofi::mr::access::send);
|
asiofi::memory_region mr(*fOfiDomain, ctrl_msg, asiofi::mr::access::send);
|
||||||
auto desc = mr.desc();
|
auto desc = mr.desc();
|
||||||
fControlEndpoint->send(
|
fControlEndpoint->send(
|
||||||
ctrl_msg, desc, [&, ctrl2 = std::move(ctrl)](boost::asio::mutable_buffer) mutable {
|
ctrl_msg, desc, [&, ctrl2 = std::move(ctrl), mr2 = std::move(mr)](boost::asio::mutable_buffer) mutable {
|
||||||
// LOG(debug) << "OFI transport (" << fId << "): >>>>> Control message sent";
|
// LOG(debug) << "OFI transport (" << fId << "): >>>>> Control message sent";
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user