aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-23 13:52:43 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-23 13:52:43 -0800
commitb7b9c758ed04a2de87822b5f37a993e529b84c28 (patch)
tree781eda1b14afe82cc248d93ca7375d62546b627f /src/core/transport
parent672cd42a04aa74d86f8ffbc1aa44b662ea7f6f1b (diff)
Add constant for min bufsize for timeout encoding
Diffstat (limited to 'src/core/transport')
-rw-r--r--src/core/transport/chttp2/timeout_encoding.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/transport/chttp2/timeout_encoding.h b/src/core/transport/chttp2/timeout_encoding.h
index a4582566ad..d1e4776032 100644
--- a/src/core/transport/chttp2/timeout_encoding.h
+++ b/src/core/transport/chttp2/timeout_encoding.h
@@ -34,8 +34,11 @@
#ifndef __GRPC_INTERNAL_TRANSPORT_CHTTP2_TIMEOUT_ENCODING_H_
#define __GRPC_INTERNAL_TRANSPORT_CHTTP2_TIMEOUT_ENCODING_H_
+#include "src/core/support/string.h"
#include <grpc/support/time.h>
+#define GRPC_CHTTP2_TIMEOUT_ENCODE_MIN_BUFSIZE (GPR_LTOA_MIN_BUFSIZE + 1)
+
/* Encode/decode timeouts to the GRPC over HTTP2 format;
encoding may round up arbitrarily */
void grpc_chttp2_encode_timeout(gpr_timespec timeout, char *buffer);