aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-11-07 13:18:20 -0800
committerGravatar GitHub <noreply@github.com>2018-11-07 13:18:20 -0800
commit38c6b2c72a9489de0ba350d1493b063fa8f6d424 (patch)
tree2cbb674b87f464e31dbe9ddb36e105d51bc5c90e
parent729a0a9e5bf85f81bd4a6a3dc22c6fb984749761 (diff)
parenta803f96e5a25d412ba5388d52cfa8376fce8446c (diff)
Merge pull request #17129 from yashykt/cancelinterceptorcomment
Add comment on cancellation being forever alone in the batch
-rw-r--r--include/grpcpp/impl/codegen/interceptor.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/grpcpp/impl/codegen/interceptor.h b/include/grpcpp/impl/codegen/interceptor.h
index 19f6afcb72..e449e44a23 100644
--- a/include/grpcpp/impl/codegen/interceptor.h
+++ b/include/grpcpp/impl/codegen/interceptor.h
@@ -57,9 +57,11 @@ enum class InterceptionHookPoints {
POST_RECV_STATUS /* client only */,
POST_RECV_CLOSE /* server only */,
/* This is a special hook point available to both clients and servers when
- TryCancel() is performed. It is illegal for an interceptor to block/delay
- this operation. ALL interceptors see this hook point irrespective of
- whether the RPC was hijacked or not. */
+ TryCancel() is performed.
+ - No other hook points will be present along with this.
+ - It is illegal for an interceptor to block/delay this operation.
+ - ALL interceptors see this hook point irrespective of whether the RPC was
+ hijacked or not. */
PRE_SEND_CANCEL,
NUM_INTERCEPTION_HOOKS
};