You can tell if a client is done using ServerTransportFilter, but you 
cannot use it to associate if a particular RPC is associated with the 
transport.  You can only tell if a client RPC is done (successful or not) 
using the StreamObserver api (and sub classes), or using the 
ServerCall.Listener API directly.

On Thursday, May 9, 2019 at 11:22:00 AM UTC-7, Sidhartha Thota wrote:
>
> Hi Team,
>
> I have a following situation. I have Java GRPC server listening for client 
> data. Client opens the connection and streams data to Server. It is 
> unidirectional stream from client to server or Client side streaming use 
> case.
>
> Client is able to know when server is down (when the write is failed) but 
> how can GRPC server know if a client is down? In precise, is any server 
> callback is called if a connected client is down? or is there any other 
> way, I can keep track of my clients from server end.
>
> Next, how can server know the client details which sent the data? Because, 
> onNext() [while listening to client data at server] method do not have any 
> info to know which client sent the corresponding data.
>
> -- 
> Thanks,
> Sidhartha Thota.
>

-- 
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/03e24c55-c77e-4d13-8391-f4e97f0fdc08%40googlegroups.com.

Reply via email to