@stakesaurus
3) The script also includes a timeout (e.g. 5 seconds), ensuring that if the client doesn't respond within a reasonable timeframe, it's considered "down."
This helps differentiate between an unresponsive service and one that's simply slow to reply.