grpc / grpc/grpc-java

CallCredentials should respect the Deadline

Aperta
#4,929 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
12.1k
Fork
4k
Merge medio
2g 17h
PR unite (30g)
37

Descrizione

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`.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.