Closed rusch95 closed 7 years ago
Should I use the timeout passed into Check?
No, that is a different timeout (length of time without receiving any good replies until we declare the backend to be down). Probably, we should rename them to be less ambiguous.
Added a timeout for the http.Get. I also added a check for if there is an error, which might be unnecessary, so remove at your call.
Testing:
Set timeout to 1 nanoseconds; servers all report failed correctly. Set timeout to 3 seconds, all servers healthy.