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

[C] async DNS res for the C media driver #1566

Merged
merged 34 commits into from
Apr 3, 2024

Conversation

nbradac
Copy link
Contributor

@nbradac nbradac commented Feb 24, 2024

No description provided.

@vyazelenko vyazelenko marked this pull request as draft March 13, 2024 13:03
@vyazelenko
Copy link
Contributor

@nbradac You need to pull from master again.

@vyazelenko vyazelenko marked this pull request as ready for review March 18, 2024 16:00
}
else
{
// TODO set current errcode/errmsg to what was handed to this function???
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we do have to set those if we are going to use them below as they are thread local variables. Can we put together a system test that will trigger this code path to see what would happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now, the only time the async_client_command->on_error is used we don't check to see what the error was. The original code just set ss_family = AF_UNSPEC and proceeded as normal. The new code sets the on_error callback so that we have an opportunity to set AF_UNSPEC, but it then just calls the _complete() callback directly. So I'm not sure we've got a good way to test this out at the moment - i.e. even if I set the errcode and errmsg thread local variables here, nobody ever reads them, so it won't matter.

@vyazelenko vyazelenko merged commit 4ed1e1b into aeron-io:master Apr 3, 2024
32 checks passed
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

Successfully merging this pull request may close these issues.

3 participants