On Wed, Mar 27, 2024 at 7:15 AM Darshan J Gowda <[email protected]>
wrote:

> Question:
>
We discussed some on Gitter.
https://app.gitter.im/#/room/#grpc_grpc:gitter.im/$h_WHhXb5S4tREY8Z12CS5VXwaoot6ELcnn51vtW2LmE


>
>    1.
>
>    Is there a way for server to end a channel of a particular client if
>    it wishes using grpc-java. I came across Interceptors where client info
>    like Ip address can be accessed by server using interceptors.. in the same
>    way can we use client channel context and interceptors to achieve
>    particular channel of a particular client closing in grpc-java
>
> The server APIs don't allow shutting down a particular connection.


>    1.
>
>    Im aware of server.shutdown(). when its invoked on server side, it
>    will close all the channels doesn't it ?
>
> It begins the shutdown process on connections. The client's channels will
reconnect.


>    1.
>
>    Is the above understanding (3rd point) correct? where does sub
>    channels come into picture among channels, RPCs(streams) here. Are
>    subchannels and streams same ?
>
> Channel: virtual connection to a service. May have 0 or many connections

Subchannel: semi-virtual connection to an address. May have 0 or many TCP
connections. It will have at most one connection for new RPCs, but may have
many old connections if the server sent GOAWAY but the RPCs on those
connections haven't completed.

Stream: an RPC on a specific TCP connection. The RPC will fail if the TCP
connection dies.

-- 
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/CA%2B4M1oPi3JfpHTdwKX49QaoLXV4W693inbi%3D-_gkwgEPfgsxEQ%40mail.gmail.com.

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

Reply via email to