Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with discovery profile #115

Closed
ghost opened this issue Dec 5, 2019 · 1 comment
Closed

Problem with discovery profile #115

ghost opened this issue Dec 5, 2019 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Dec 5, 2019

Is it part of the specification that the client does not stop the discovery process until the discovery timeout is passed, even when an agent was already discovered?
For example, when the 'attempts' parameter is 1000(times) and the 'period' parameter is 1000(ms),
the client will try to discover an agent for 1000 seconds. Even when an agent is discovered, uxr_discovery_agents() does not return until 1000 seconds have passed.

In version 1.0.2, when an agent is discovered and a callback function returns true, variable 'consumed'  changes to true. And the client stops the discovery process.

while(0 < poll && !consumed)
{
consumed = listen_info_message(&transport, poll, &callback);
poll -= (int)(uxr_millis() - timestamp);
}

 
But since version 1.1.0, the client does not stop the discovery process until the discovery timeout is passed. Variable 'consumed' was deleted!
while(0 < poll)
{
(void) listen_info_message(&transport, poll, &callback);
poll -= (int)(uxr_millis() - timestamp);
}

Is this going to be fixed?

@BorjaOuterelo
Copy link
Contributor

Hi, @muto-esol.

Yep, this we will look at this and see why was changed.

It makes sense to stop the discovery once the Client has an agent already without waiting the full time, as it was before, but need to look at it.

Thanks for all the feedback.

@BorjaOuterelo BorjaOuterelo added bug and removed bug labels Dec 5, 2019
@BorjaOuterelo BorjaOuterelo self-assigned this Dec 5, 2019
yszheda added a commit to yszheda/Micro-XRCE-DDS-Client that referenced this issue Dec 12, 2019
@yszheda yszheda mentioned this issue Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant