aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-07-20 10:45:36 -0700
committerGravatar yang-g <yangg@google.com>2016-07-20 10:45:36 -0700
commit13958b3be1b3ec65f54dc295e794079336aa67c9 (patch)
tree7e18899cd16d59207d3513a971f3ad021d7dff6b /src/core/lib/security
parent7c519b924348b1ae58c552f056217ce0cc02e38d (diff)
Convert deadline clock type in security handshake timer
Diffstat (limited to 'src/core/lib/security')
-rw-r--r--src/core/lib/security/transport/handshake.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/security/transport/handshake.c b/src/core/lib/security/transport/handshake.c
index b374ca7633..540a17283d 100644
--- a/src/core/lib/security/transport/handshake.c
+++ b/src/core/lib/security/transport/handshake.c
@@ -357,8 +357,9 @@ void grpc_do_security_handshake(
gpr_mu_unlock(&server_connector->mu);
}
send_handshake_bytes_to_peer(exec_ctx, h);
- grpc_timer_init(exec_ctx, &h->timer, deadline, on_timeout, h,
- gpr_now(deadline.clock_type));
+ grpc_timer_init(exec_ctx, &h->timer,
+ gpr_convert_clock_type(deadline, GPR_CLOCK_MONOTONIC),
+ on_timeout, h, gpr_now(GPR_CLOCK_MONOTONIC));
}
void grpc_security_handshake_shutdown(grpc_exec_ctx *exec_ctx,