Use monotonic times (as we used to)

pull/11866/head
Craig Tiller 7 years ago
parent b668f5bc19
commit b603489629
  1. 4
      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->host = grpc_slice_ref_internal(calld->host);
rc->data.batch.details->method = grpc_slice_ref_internal(calld->path); rc->data.batch.details->method = grpc_slice_ref_internal(calld->path);
rc->data.batch.details->deadline = 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; rc->data.batch.details->flags = calld->recv_initial_metadata_flags;
break; break;
case REGISTERED_CALL: case REGISTERED_CALL:
*rc->data.registered.deadline = *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) { if (rc->data.registered.optional_payload) {
*rc->data.registered.optional_payload = calld->payload; *rc->data.registered.optional_payload = calld->payload;
calld->payload = NULL; calld->payload = NULL;

Loading…
Cancel
Save