Skip to content

Configurable default timeout for HttpMessageInvoker #1314

@danielcandea

Description

@danielcandea

New Feature

Enable configurability of the default timeout for MessageInvokerPool.
Functions of new properties:

  • A global timeout in the FileGlobalConfiguration section would set a default timeout value for all routes, applicable to both QoS and non-QoS scenarios.
  • A local, route-level timeout in FileRoute settings would take precedence, allowing for the overriding of the global default value.

Motivation for New Feature

Setting a custom default global timeout is simpler than configuring QoS settings for each handler, particularly when multiple handlers are defined.

Notes

There is an undocumented Timeout property which is not implemented:

public int Timeout { get; set; }

Metadata

Metadata

Assignees

Labels

ConfigurationOcelot feature: ConfigurationQoSOcelot feature: Quality of Service aka PollyRoutingOcelot feature: RoutingSpring'25Spring 2025 releasefeatureA new featuremergedIssue has been merged to dev and is waiting for the next release

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions