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

Built-in Connection Verifier #140

Open
Max-Meldrum opened this issue Feb 21, 2021 · 0 comments
Open

Built-in Connection Verifier #140

Max-Meldrum opened this issue Feb 21, 2021 · 0 comments
Assignees

Comments

@Max-Meldrum
Copy link
Contributor

I looked through the docs and code, but I don't think there is currently such as feature (my bad if I missed it).
If we say that I have a client application and want to connect to a service. If there is no valid connection to the target Component, then the application should exit...

let client_path: ActorPath = NamedPath::with_socket(Transport::Tcp, client_sock, vec!["client".into()]).into();

client_path
  .check_connection()
  .wait_expect(Duration::from_millis(1000),  "Failed to connect to client at address X");

I think I have seen built-in Hello/Ping messages in Kompact, perhaps we could use them to check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants