http2 stream id for a rpc call

58 views
Skip to first unread message

abal...@gmail.com

unread,
Nov 22, 2016, 1:05:18 PM11/22/16
to grpc.io
Hi,

In C++, is there a way to identify the stream id of a client who is making the rpc call? 

If not, is ServerContext::peer() a reliable way to go about it? From documentation I understand that peer() value is never authenticated or subject to any security related code. But I am hoping it'd be reliable if not compromised (meaning different rpc calls from the same peer always return the same value). One downside of this approach is that this call always makes an allocation. So if there is a way to get the stream id of the peer, that'd be nice. 


Thanks
Arpit



 

abal...@gmail.com

unread,
Nov 28, 2016, 5:27:34 PM11/28/16
to grpc.io, abal...@gmail.com
Bumping this thread to see if there are any recommendations.

What I am trying to do is identify a particular client connection the moment it connects to my service and associate future rpc calls with the same connection. I'd also like to know if the connection is closed (for whatever reason).

Thanks. 

Arpit Baldeva

unread,
Nov 29, 2016, 1:29:29 AM11/29/16
to grpc.io
Apologies for multiple emails. It just occurred to me that the topic of my post is incorrect. What I am really looking for is the client/peer connection establishment/closed event (and not really the stream id of rpc call - I am having a hard time trying to recall why I asked for that in the first place :) ).   

--
You received this message because you are subscribed to a topic in the Google Groups "grpc.io" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grpc-io/z6aEEiaeopM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/c89e3aa0-15e0-4941-b5a7-216de8dd6554%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages