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

server: enabled option for default health check service for mavsdk grpc server. #1799

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

ykhedar
Copy link
Contributor

@ykhedar ykhedar commented Jun 4, 2022

This PR enables the default grpc health check service for the mavsdk_server. Such a service is useful to check if mavsdk_server has started serving before clients would try to connect it. Documentation on this service is at gRPC-C++ Health Check Protocol

Once enabled, a CLI client like grpc_health_probe can be used to check if the service is serving or not.

Example 1: MAVSDK Server is not yet connected to any autopilot so not listening on port 50051.

timeout: failed to connect service "127.0.0.1:50051" within 1s

Example 2: MAVSDK Server IS conencted to a autopilot and listening on port 50051

status: SERVING

@JonasVautherin JonasVautherin merged commit 12cf8cf into mavlink:main Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants