after graceful shutdown, the channel won't accept incoming traffic. but, it
will wait until all the streams are finished.
can you check if there is any active streams?


On Sun, Jul 28, 2019 at 2:27 PM Elhanan Maayan <[email protected]> wrote:

>
> hi,
> assuming that i have a streaming request. how would i close a channel?
>
> if i configure a deadline attempting to use channel
> using channel.shutdown().awaitTermination(15, TimeUnit.SECONDS);  won't
> work until i use shutdown now.
>
> otherwise it will keep sending packets.
> if i use  mListenContext = Context.current().withCancellation(); i will
> get an error cancelled without reason, i've been trying to search grpc
> code, and there seems to a gracefullCloseCommand but i don't know how to
> use it.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/c7207d76-7297-4bda-9632-4a1b661881de%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/c7207d76-7297-4bda-9632-4a1b661881de%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CABu9Gjpd8X9CWUO7%3DpcSceg1CzerM7AMrd_ceH_UuKmzteYOCg%40mail.gmail.com.

Reply via email to