aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/impl/call.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-11 20:34:33 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-11 20:34:33 -0800
commit504bd331aba5817c2753c4f447f40cc83fa4d907 (patch)
treea109bb943793a758f505041508c2d06864856f10 /include/grpc++/impl/call.h
parent4dd70173bdf0754a039ddf634080e2fbf29d86e7 (diff)
Make sure we get a close before stopping the server
Diffstat (limited to 'include/grpc++/impl/call.h')
-rw-r--r--include/grpc++/impl/call.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/grpc++/impl/call.h b/include/grpc++/impl/call.h
index 9ac92a00dd..f4b07625be 100644
--- a/include/grpc++/impl/call.h
+++ b/include/grpc++/impl/call.h
@@ -73,6 +73,7 @@ class CallOpBuffer final : public CompletionQueueTag {
Status *status);
void AddServerSendStatus(std::multimap<grpc::string, grpc::string> *metadata,
const Status& status);
+ void AddServerRecvClose(bool* cancelled);
// INTERNAL API:
@@ -110,6 +111,8 @@ class CallOpBuffer final : public CompletionQueueTag {
const Status* send_status_ = nullptr;
size_t trailing_metadata_count_ = 0;
grpc_metadata *trailing_metadata_ = nullptr;
+ int cancelled_buf_;
+ bool *recv_closed_ = nullptr;
};
// Channel and Server implement this to allow them to hook performing ops