Tracker Checker: handle HTTP Tracker timeouts #679
Labels
- Admin -
Enjoyable to Install and Setup our Software
- Developer -
Torrust Improvement Experience
Code Cleanup / Refactoring
Tidying and Making Neat
Easy
Good for Newcomers
Enhancement / Feature Request
Something New
good first issue
Good for newcomers
Testing
Checking Torrust
Milestone
Parent issue: #677
You can run a Tracker Checker with:
The HTTP Tracker client does not have any timeout so it will wait forever.
We have to add a
timeout
to the HTTP client requests:You can add a timeout to all
reqwest.get
like this in the Health Check:You can force the error by adding a
sleep
in the handler:This issue should be implemented after refactoring the HTTP Tracker client to return errors instead of panicking.
The text was updated successfully, but these errors were encountered: