-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
ConfigurationOcelot feature: ConfigurationOcelot feature: ConfigurationQoSOcelot feature: Quality of Service aka PollyOcelot feature: Quality of Service aka PollySpring'25Spring 2025 releaseSpring 2025 releasemergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next releaseproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot
Milestone
Description
Expected Behavior / New Feature
_defaultTimeout = TimeSpan.FromSeconds(_configuration.TimeOut);
Actual Behavior / Motivation for New Feature
_defaultTimeout = TimeSpan.FromSeconds(90);
In MessageInvokerPool
:
public const int DefaultRequestTimeoutSeconds = 90; |
and
Ocelot/src/Ocelot/Requester/MessageInvokerPool.cs
Lines 59 to 63 in cc8f5c5
// Adding timeout handler to the top of the chain. | |
// It's standard behavior to throw TimeoutException after the defined timeout (90 seconds by default) | |
var timeoutHandler = new TimeoutDelegatingHandler(downstreamRoute.QosOptions.TimeoutValue == 0 | |
? TimeSpan.FromSeconds(RequestTimeoutSeconds) | |
: TimeSpan.FromMilliseconds(downstreamRoute.QosOptions.TimeoutValue)) |
in version 23.0
Ocelot/src/Ocelot/Requester/MessageInvokerPool.cs
Lines 9 to 12 in 7c26c07
/// <summary> | |
/// TODO This should be configurable and available as global config parameter in ocelot.json. | |
/// </summary> | |
public const int DefaultRequestTimeoutSeconds = 90; |
Specifications
- Version: 23.0.0+
- Platform: All
- Subsystem: Any
lemosluan
Metadata
Metadata
Assignees
Labels
ConfigurationOcelot feature: ConfigurationOcelot feature: ConfigurationQoSOcelot feature: Quality of Service aka PollyOcelot feature: Quality of Service aka PollySpring'25Spring 2025 releaseSpring 2025 releasemergedIssue has been merged to dev and is waiting for the next releaseIssue has been merged to dev and is waiting for the next releaseproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot