diff options
author | Vijay Pai <vpai@google.com> | 2018-12-04 10:41:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 10:41:30 -0800 |
commit | fdb708e266622e439a76364dea3a660e339e1547 (patch) | |
tree | f621d6c6930a9aeea48f05e18e5a180690fc2332 /include | |
parent | c3b1047e3089bb79d907910b652694c6622801b9 (diff) | |
parent | 606177bbc8343c94b075021522f304e6ecf43aa8 (diff) |
Merge pull request #17386 from vjpai/ctx_lifetime
Document that ClientContext must remain alive for duration of RPC
Diffstat (limited to 'include')
-rw-r--r-- | include/grpcpp/impl/codegen/client_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grpcpp/impl/codegen/client_context.h b/include/grpcpp/impl/codegen/client_context.h index 6059c3c58a..142cfa35dd 100644 --- a/include/grpcpp/impl/codegen/client_context.h +++ b/include/grpcpp/impl/codegen/client_context.h @@ -168,6 +168,8 @@ class InteropClientContextInspector; /// (see \a grpc::CreateCustomChannel). /// /// \warning ClientContext instances should \em not be reused across rpcs. +/// \warning The ClientContext instance used for creating an rpc must remain +/// alive and valid for the lifetime of the rpc. class ClientContext { public: ClientContext(); |