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:
Alexey Rybalchenko
2018-11-27 17:22:26 +01:00
committed by Dennis Klein
parent dc1d7a23c1
commit ffbe90b638
6 changed files with 53 additions and 102 deletions

View File

@@ -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 {