diff options
author | David Garcia Quintas <dgq@google.com> | 2016-09-22 18:32:46 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-09-22 18:32:46 -0700 |
commit | d8bf8e2525adeb8b4ae2108cd022e167e5fb8545 (patch) | |
tree | a6f6f4794597a2646f53ac2bdefbe8946b720e7e /src/core/ext/lb_policy/grpclb/grpclb.c | |
parent | 5bf8a9a230179cd83162e267926f5972ee39a7fe (diff) |
Changed deadline of internal LB channel.
It used to be 3 seconds for no good reason. The correct value would come
from the parent channel. Until that's easy to accomplish, it's been
changed to "infinite".
Diffstat (limited to 'src/core/ext/lb_policy/grpclb/grpclb.c')
-rw-r--r-- | src/core/ext/lb_policy/grpclb/grpclb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/ext/lb_policy/grpclb/grpclb.c b/src/core/ext/lb_policy/grpclb/grpclb.c index 18279447ba..e717c8a183 100644 --- a/src/core/ext/lb_policy/grpclb/grpclb.c +++ b/src/core/ext/lb_policy/grpclb/grpclb.c @@ -922,10 +922,8 @@ static lb_client_data *lb_client_data_create(glb_lb_policy *glb_policy) { grpc_closure_init(&lb_client->close_sent, close_sent_cb, lb_client); grpc_closure_init(&lb_client->srv_status_rcvd, srv_status_rcvd_cb, lb_client); - /* TODO(dgq): get the deadline from the client config instead of fabricating - * one here. */ - lb_client->deadline = gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), - gpr_time_from_seconds(3, GPR_TIMESPAN)); + /* TODO(dgq): get the deadline from the parent channel. */ + lb_client->deadline = gpr_inf_future(GPR_CLOCK_MONOTONIC); /* Note the following LB call progresses every time there's activity in \a * glb_policy->base.interested_parties, which is comprised of the polling |