--
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 grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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.
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.
I am using grpc-java 1.3.
On Monday, June 26, 2017 at 11:32:45 AM UTC-7, ran...@addepar.com 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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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.
--
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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.
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?
If no errors or cancellations are known to have occurred, then a {@link Listener#onComplete} notification should be expected, independent of {@code status}.