mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Update to new DDS 2.2 API
- require DDS 2.2 - fix regressions in automatic port binding - fix regression in channel API - update DDS example readme
This commit is contained in:
committed by
Dennis Klein
parent
dc1d7a23c1
commit
ffbe90b638
@@ -614,7 +614,7 @@ bool FairMQChannel::BindEndpoint(string& endpoint)
|
||||
uniform_int_distribution<int> randomPort(fPortRangeMin, fPortRangeMax);
|
||||
|
||||
do {
|
||||
LOG(debug) << "Could not bind to configured (TCP) port, trying random port in range " << fPortRangeMin << "-" << fPortRangeMax;
|
||||
LOG(debug) << "Could not bind to configured (TCP) port (" << endpoint << "), trying random port in range " << fPortRangeMin << "-" << fPortRangeMax;
|
||||
++numAttempts;
|
||||
|
||||
if (numAttempts > maxAttempts) {
|
||||
@@ -624,7 +624,7 @@ bool FairMQChannel::BindEndpoint(string& endpoint)
|
||||
|
||||
size_t pos = endpoint.rfind(':');
|
||||
endpoint = endpoint.substr(0, pos + 1) + fair::mq::tools::ToString(static_cast<int>(randomPort(generator)));
|
||||
} while (fSocket->Bind(endpoint));
|
||||
} while (!fSocket->Bind(endpoint));
|
||||
|
||||
return true;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user