metadata "grpc-timeout" question

33 views
Skip to first unread message

Sumukh Shivaprakash

unread,
Mar 25, 2020, 7:13:41 PM3/25/20
to grpc.io
I have noticed that the client timeout that is passed in the rpc call is propagated to the server using the above metadata.
In c++, when I get the call context and query the deadline(), I am guessing it provides the same by using the value from the above header? 

Additionally, I am using grpc transcoding from REST via Envoy. If I set the same header in a REST request from a HTTP 1.1 client, can I get assume that the server will behave similar wrt the deadline aspect when compared to a native grpc client call?

Thanks,
Sumukh

stanle...@google.com

unread,
Apr 2, 2020, 12:31:54 AM4/2/20
to grpc.io
Yes Envoy should be relaying the grpc-timeout header to the backend and should have the same sematics.

Sumukh Shivaprakash

unread,
Apr 2, 2020, 1:32:43 AM4/2/20
to grpc.io
Thank you.

I see a request id in the client which gets printed when grpc client gets an error from the server. How can we access this request id on the server?

Reply all
Reply to author
Forward
0 new messages