aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/client_config/subchannel.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-22 07:43:38 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-22 07:43:38 -0700
commit044d153141673c2ea05fe3d1554b3c064d6aa3bd (patch)
tree20ecfeee8bf4c20f74af6f7984caeb30232c54bf /src/core/client_config/subchannel.c
parent5553eb3ee2a335328633598d54bb1e0484d13040 (diff)
parentd1408e71636f7ec74839a9bcff0429fb7e2caeb0 (diff)
Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other
Conflicts: src/core/client_config/subchannel.c src/core/iomgr/alarm.c src/core/iomgr/iomgr.c src/core/iomgr/tcp_client_posix.c
Diffstat (limited to 'src/core/client_config/subchannel.c')
-rw-r--r--src/core/client_config/subchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/client_config/subchannel.c b/src/core/client_config/subchannel.c
index 074e64dfc5..98e311eac0 100644
--- a/src/core/client_config/subchannel.c
+++ b/src/core/client_config/subchannel.c
@@ -307,7 +307,7 @@ static void continue_connect(grpc_subchannel *c) {
}
static void start_connect(grpc_subchannel *c) {
- gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME);
+ gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC);
c->next_attempt = now;
c->backoff_delta = gpr_time_from_seconds(1, GPR_TIMESPAN);
@@ -598,7 +598,7 @@ static void subchannel_connected(void *arg, int iomgr_success) {
if (c->connecting_result.transport != NULL) {
publish_transport(c);
} else {
- gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME);
+ gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC);
gpr_mu_lock(&c->mu);
GPR_ASSERT(!c->have_alarm);
c->have_alarm = 1;