-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
absolute deadline propagation #11966
Comments
Is this the right way to go?
|
I have found another approach and it looks better than the former - using ServerStreamTracer.Factory. In this case I'm getting in before original deadline context creation in ServerImpl
Any thoughts and criticism are greatly appreciated. |
Yes, the 2nd solution is better, because in the 1st solution you are creating a forked cancellable context and so the cancellation will be called twice. Also it handles closing the call when cancellation due to the timeout occurs. |
Currently grpc deadlines are propagated from client to server via grpc-timeout header as relative value(timeout).
We believe we have pretty good clock synchronization between our servers (up to several milliseconds) and are interesting in propagation of the absolute deadline in some custom header. Is there a way to do it by customizing grpc-java server and client logic in interceptors or something else, but without forking grpc-java implementation?
The text was updated successfully, but these errors were encountered: