Commit Graph

5 Commits

Author SHA1 Message Date
iacore 7cb6ac50c6 simplify proxy checker 2024-10-04 16:04:08 +00:00
perennial 305f574f15 Refactor proxy checker initialisation and shutdown
Restructure the proxy checking logic to use a ticker for periodic checks
when a non-zero interval is set. Improve handling of zero interval case
by waiting for a stop signal. Improve stop mechanism and initialisation
of stopChan.

Also introduce a new test file proxy_checker_test.go for unit testing.
2024-09-24 18:41:40 +10:00
perennial f6a2bc4fda Wait for initial proxy check on server startup
Modify the server startup process to wait for the first proxy check to
complete before initialising the server.

Add logging to provide visibility into the proxy checker initialisation
process.
2024-09-17 15:48:07 +10:00
VnPower a34a21eed4 Fix proxy checker unable to run anymore 10 seconds after server init 2024-09-16 20:39:57 +07:00
VnPower f55c73bbdf Move proxy_checker into the server/ folder 2024-09-16 20:17:15 +07:00