From b6034896292085ac942887c0bce106278a4797a8 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 20 Sep 2017 16:01:19 -0700 Subject: [PATCH] Use monotonic times (as we used to) --- src/core/lib/surface/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c index 1d3980eb230..dd09cb91de4 100644 --- a/src/core/lib/surface/server.c +++ b/src/core/lib/surface/server.c @@ -493,12 +493,12 @@ static void publish_call(grpc_exec_ctx *exec_ctx, grpc_server *server, rc->data.batch.details->host = grpc_slice_ref_internal(calld->host); rc->data.batch.details->method = grpc_slice_ref_internal(calld->path); rc->data.batch.details->deadline = - grpc_millis_to_timespec(calld->deadline, GPR_CLOCK_REALTIME); + grpc_millis_to_timespec(calld->deadline, GPR_CLOCK_MONOTONIC); rc->data.batch.details->flags = calld->recv_initial_metadata_flags; break; case REGISTERED_CALL: *rc->data.registered.deadline = - grpc_millis_to_timespec(calld->deadline, GPR_CLOCK_REALTIME); + grpc_millis_to_timespec(calld->deadline, GPR_CLOCK_MONOTONIC); if (rc->data.registered.optional_payload) { *rc->data.registered.optional_payload = calld->payload; calld->payload = NULL;