Skip to content

Terminate the program when the maximum ping difference is exceeded#292

Open
yjoer wants to merge 5 commits intoprobot:masterfrom
yjoer:healthcheck
Open

Terminate the program when the maximum ping difference is exceeded#292
yjoer wants to merge 5 commits intoprobot:masterfrom
yjoer:healthcheck

Conversation

@yjoer
Copy link
Copy Markdown

@yjoer yjoer commented Feb 27, 2024

Inspired by #179, I added an option to enable health checks to terminate the program if a ping is not received within a specified period. In container orchestration systems like Docker/Kubernetes, a container can be restarted once the process within is terminated. For this reason, the changes do not include the capability to restart the connection while leaving the process intact. Apart from the scenario mentioned in #179, this seems needed for networks behind a CGNAT where the ISP might assign a different IP address to a user anytime.

Graysonbarton

This comment was marked as duplicate.

@Uzlopak
Copy link
Copy Markdown
Collaborator

Uzlopak commented May 28, 2025

@wolfy1339

why dont we call it timeout? or pingTimeout?

@wolfy1339
Copy link
Copy Markdown
Contributor

sounds good to me, i only updated it to fix the merge conflicts, and some slight updates to use private fields

Copy link
Copy Markdown

@Graysonbarton Graysonbarton left a comment

Choose a reason for hiding this comment

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

Signed-off-by: Grayson Barton gveyron18@outlook.com

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.

5 participants