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 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%2B4M1oO2k0PE%3D-sd5GdDm2d0y4vxtWBCNwObRoGEORe_XnX9Pw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
