diff options
author | 2015-02-04 10:56:32 -0800 | |
---|---|---|
committer | 2015-02-04 10:56:32 -0800 | |
commit | dbc0f5940adca898862ff4c0791e5eb08b254045 (patch) | |
tree | 0ef59231d9272f020ae42be211b1f05b86a44af7 /src/cpp/server/async_server_context.cc | |
parent | 47ef2f8b6ae7ade71374928c37caca1c478dfa3a (diff) |
Add write buffer hint to C++ server handlers so that writes actually go
out when expected.
Diffstat (limited to 'src/cpp/server/async_server_context.cc')
-rw-r--r-- | src/cpp/server/async_server_context.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/server/async_server_context.cc b/src/cpp/server/async_server_context.cc index 92958111c0..8e03f7257c 100644 --- a/src/cpp/server/async_server_context.cc +++ b/src/cpp/server/async_server_context.cc @@ -54,7 +54,7 @@ AsyncServerContext::~AsyncServerContext() { grpc_call_destroy(call_); } void AsyncServerContext::Accept(grpc_completion_queue *cq) { GPR_ASSERT(grpc_call_server_accept(call_, cq, this) == GRPC_CALL_OK); - GPR_ASSERT(grpc_call_server_end_initial_metadata(call_, 0) == GRPC_CALL_OK); + GPR_ASSERT(grpc_call_server_end_initial_metadata(call_, GRPC_WRITE_BUFFER_HINT) == GRPC_CALL_OK); } bool AsyncServerContext::StartRead(google::protobuf::Message *request) { |