grpc / grpc/grpc-java

CallCredentials should respect the Deadline

Open
#4,929 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

Please answer these questions before submitting your issue.

### What version of gRPC are you using?
1.15.1

### What did you expect to see?
An RPC should never outlast a deadline set in either `CallOptions` or `grpc.

### What I actually saw?
`CallCredentials` does not respect deadlines, so a `ClientCall` cannot guarantee that the RPC will finish within a set deadline (for example if an OAuth token needs to be refreshed). Furthermore, the current `CallCredential` api makes it impossible for `CallCredentials` to access the deadline set in `CallOptions`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.