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/CAAvp3oMEPHPNbs3zyrbgm00gS%2Byg6jN%2Bqw3BRLsgba7ANyAQqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to