aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-23 14:46:37 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-23 14:46:37 -0700
commit5ce5d825df7f73e39b1400b2700bf1e6a398addd (patch)
tree7cc0ab4fa3de856ceb3d25f6df8d833fc7bdc702 /src/core/transport
parent314575f55f8b605dc0c3407a92da948e22be0026 (diff)
parente07c368861b171c4f878e3dff651b61e8aeada59 (diff)
Merge pull request #5897 from ctiller/fix_time
Fix timeout decoding logic for times that become infinite
Diffstat (limited to 'src/core/transport')
-rw-r--r--src/core/transport/chttp2/timeout_encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/transport/chttp2/timeout_encoding.c b/src/core/transport/chttp2/timeout_encoding.c
index a6f7081d21..c4802e050e 100644
--- a/src/core/transport/chttp2/timeout_encoding.c
+++ b/src/core/transport/chttp2/timeout_encoding.c
@@ -150,7 +150,7 @@ int grpc_chttp2_decode_timeout(const char *buffer, gpr_timespec *timeout) {
/* spec allows max. 8 digits, but we allow values up to 1,000,000,000 */
if (x >= (100 * 1000 * 1000)) {
if (x != (100 * 1000 * 1000) || digit != 0) {
- *timeout = gpr_inf_future(GPR_CLOCK_REALTIME);
+ *timeout = gpr_inf_future(GPR_TIMESPAN);
return 1;
}
}