Thanks Eric.
I was under the impression that ServerCall.close also handle the
cancellation because CANCELLED is declared in Status.Code.
Why is cancelation handled specially from other status?

On Mon, Jun 26, 2017 at 3:22 PM 'Eric Anderson' via grpc.io <
[email protected]> wrote:

> ServerCall.close() is not guaranteed to be called, mainly in the case of
> cancellation. Either ServerCall.Listener.onCancel() or onComplete() is
> guaranteed to be called.
>
> On Mon, Jun 26, 2017 at 1:50 PM, ran.bi via grpc.io <
> [email protected]> wrote:
>
>> I am using grpc-java 1.3.
>>
>> On Monday, June 26, 2017 at 11:32:45 AM UTC-7, [email protected] wrote:
>>>
>>> I am trying to track the number of RPCs that is being processed by
>>> server.
>>> Is ServerCall#close guaranteed to be called for each RPC?
>>> Can I override ServerCall, increment counter in constructor and
>>> decrement the counter in #close?
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "grpc.io" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/grpc-io.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/grpc-io/f7af8f0e-795d-4a9a-b492-c5fe32290583%40googlegroups.com
>> <https://groups.google.com/d/msgid/grpc-io/f7af8f0e-795d-4a9a-b492-c5fe32290583%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "grpc.io" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/grpc-io/gWmvHo2WSdA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oO2k0PE%3D-sd5GdDm2d0y4vxtWBCNwObRoGEORe_XnX9Pw%40mail.gmail.com
> <https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oO2k0PE%3D-sd5GdDm2d0y4vxtWBCNwObRoGEORe_XnX9Pw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CA%2BMQGYqkOzzuWGbi7yrzc%3DAGfNCEkb_QqC8_zj%3DFkxA_tymf%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to