-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: add new TestGRPCDeadlinePropagation test
TestGRPCDeadlinePropagation is a smoketest for gRPC deadline propagation. When RPC clients issue requests with deadlines/timeouts attached to their context, they are guaranteed that not only will remote RPCs respect this deadline/timeout if it is reached, but that the remote RPC will be aware of the timeout throughout its lifetime. In other words, deadlines/timeouts are communicated upfront by the client, not only after they have been reached. gRPC implements this through its "grpc-timeout" header field, which is attached to the header (first) frame of unary and streaming calls. For more, see https://grpc.io/docs/what-is-grpc/core-concepts/#deadlines, which says: > gRPC allows clients to specify how long they are willing to wait for an RPC > to complete before the RPC is terminated with a DEADLINE_EXCEEDED error. On > the server side, the server can query to see if a particular RPC has timed > out, or how much time is left to complete the RPC.
- Loading branch information
1 parent
b261b61
commit e951206
Showing
1 changed file
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters