ServerStatus-Rust icon indicating copy to clipboard operation
ServerStatus-Rust copied to clipboard

[Bug] Client exit on name resolve failure

Open snowie2000 opened this issue 9 months ago • 0 comments

Checklist

  • [x] I have updated the version to the latest Release version
  • [x] I've read the documentation in detail and still can't solve it
  • [x] I have searched existing Issues | Discussions, but still can't solve it
  • [x] I've tried a Google search and still can't figure it out

💻 Operating System

Debian12

🐛 Bug Description

The problem lies in this line: https://github.com/zdz/ServerStatus-Rust/blob/b87dc568d087aa9dd9d25cccacec453969ac2ada/client/src/main.rs#L226

When there is a network issue or DNS issue or something unexpected happens, the client simply exits with an error.

There should be at least a retry logic or even infinite retries with exponentially growing (with an upper limit) intervals to avoid report interruption.

🚦 Expected Behavior

No response

📷 Recurrence Steps

No response

📝 Additional Information

No response

snowie2000 avatar Mar 24 '25 01:03 snowie2000