Skip to content
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

finagle-core: Use configured deadline params #937

Closed
wants to merge 1 commit into from

Conversation

DieBauer
Copy link
Contributor

Problem

We can set the TimeoutFilter.PropagateDeadlines and TimeoutFilter.PreferDeadlineOverTimeout to configure behavior on the Client. When the MethodBuilder interface is used, the perRequestModule does only look at the Default values of these configurations, preventing custom configuration.

Solution

Pass the TimeoutFilter.PropagateDeadlines and
TimeoutFilter.PreferDeadlineOverTimeout as Params to the perRequestModule to instantiate the TimeoutFilter with correct configuration.

Result

The MethodBuilder will pick up configured TimeoutFilter.PropagateDeadlines and TimeoutFilter.PreferDeadlineOverTimeout parameters.

Signed-off-by: Jens Kat jenskat@gmail.com

Problem

We can set the `TimeoutFilter.PropagateDeadlines` and
`TimeoutFilter.PreferDeadlineOverTimeout` to configure behavior on the Client.
When the MethodBuilder interface is used, the `perRequestModule` does only look
at the `Default` values of these configurations, preventing custom configuration.

Solution

Pass the `TimeoutFilter.PropagateDeadlines` and
`TimeoutFilter.PreferDeadlineOverTimeout` as Params to the `perRequestModule` to
instantiate the `TimeoutFilter` with correct configuration.

Result

The MethodBuilder will pick up configured `TimeoutFilter.PropagateDeadlines`
and `TimeoutFilter.PreferDeadlineOverTimeout` parameters.

Signed-off-by: Jens Kat <jenskat@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant