aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-23 09:52:11 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-23 09:52:11 -0700
commit94329d09656f3eeb8eee40b72b96ec9cd3578559 (patch)
treed31e81417fc29c6452c5cfa635ccec6c606ea65b /src/core/transport
parentd435caa13eb3710a4d3d17825b0efe3a06336ab7 (diff)
Make the server report monotonic times for deadlines
For very high performance systems, we're going to want to be able to simply push the value reported from the server down onto clients. If we report realtime now, then all wrapped languages are going to assume it, meaning that such a change will be impossible later.
Diffstat (limited to 'src/core/transport')
-rw-r--r--src/core/transport/chttp2/parsing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/transport/chttp2/parsing.c b/src/core/transport/chttp2/parsing.c
index 904b9afce7..50a2f752f6 100644
--- a/src/core/transport/chttp2/parsing.c
+++ b/src/core/transport/chttp2/parsing.c
@@ -607,7 +607,7 @@ static void on_header(void *tp, grpc_mdelem *md) {
}
grpc_chttp2_incoming_metadata_buffer_set_deadline(
&stream_parsing->incoming_metadata,
- gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), *cached_timeout));
+ gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), *cached_timeout));
GRPC_MDELEM_UNREF(md);
} else {
grpc_chttp2_incoming_metadata_buffer_add(&stream_parsing->incoming_metadata,