There's not. We've talked about having a std::function argument to Shutdown that would fire when the deadline elapses (I'm against a particular concurrency expression (mutex/condvar for instance) here since every app ends up wanting different things).
There's no plans to implement it just yet, but it's likely doable. On Tue, Jan 24, 2017 at 5:11 PM howarth via grpc.io < [email protected]> wrote: > Thank you for the tip. There's no mutex+cond var built in for this > purpose, right? I need a way to wake up my rpc handler to check > IsCancelled(), but I can't signal after calling Shutdown because shutdown > is blocking. > > > On Tuesday, January 24, 2017 at 4:39:51 PM UTC-8, Craig Tiller wrote: > > Shutdown with deadline will trigger IsCancelled() on the server context to > become true once the deadline fires, and you could use that bit to make > your handlers exit. > > On Tue, Jan 24, 2017 at 3:11 PM 'howarth' via grpc.io < > [email protected]> wrote: > > I'm using gRPC to run a streaming subscription service. My rpc > subscription handler does not return so that the connection between client > and server remains open. > > Is there a way to force a shutdown given that my existing subscription > rpcs won't finish on their own? Both the normal Shutdown and Shutdown with > a deadline hang forever in this case. > > -- > 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/0a56de4a-807e-4095-996f-6de902bb37dc%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/0a56de4a-807e-4095-996f-6de902bb37dc%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/989726f6-6aa5-442c-ae75-1855b2712d65%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/989726f6-6aa5-442c-ae75-1855b2712d65%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/CAAvp3oOHKeM4%3DHEH_%3DfYdLOrF43cv0WEKGn2-nujJC%3D6TDKECA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
