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

use port instead of pidof to detect tor going down #2320

Merged
merged 3 commits into from
Jun 23, 2023

Conversation

dr-bonez
Copy link
Member

No description provided.

MattDHill
MattDHill previously approved these changes Jun 23, 2023
.await
.is_ok()
{
for _ in 0..30 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Better check, nice

{
if last_success.elapsed() > *health_timeout {
let err = Error::new(eyre!("Tor health check failed for longer than current timeout ({health_timeout:?})"), crate::ErrorKind::Tor);
*health_timeout *= 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Exponential Timeout? Cool

@dr-bonez dr-bonez merged commit dd28ad2 into master Jun 23, 2023
@dr-bonez dr-bonez deleted the bugfix/container-tor branch November 9, 2023 19:42
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