Open humbornjo opened 1 hour ago
btw, I wrote a dummy prober with no use of ctx, and it works well.
Speaking of which, about the wired behavior health when the conn dialing timeout. it should report unhealthy, but in fact it still use the timeout conn. I am still trying to comprehend the code logic of this part, maybe discuss it in another thread.
We run into some trouble with client conn control, and trying to use the health check. however, the default health checker will always fail with its context deadline exceeded. I think its because the line 332 in
httplb/balancer.go
, should use withtimeout instead of withcancel.here is my test code
the error log