Skip to content

HttpOptions.TimeoutInSeconds not working for values higher than 100s #721

@FlorianHockmann

Description

@FlorianHockmann

If I'm not mistaken, then the HttpOptions.TimeoutInSeconds are not working as expected right now because they are only used to create a policy which will let the HTTP request timeout after the specified timeout.
The HttpClient used for that request however also has a timeout which defaults to 100s. If the configured timeout is higher than that, then the request will timeout after 100 seconds and the configured timeout used in the policy will never be used.

I am not sure why we use this policy at all if the HttpClient already has a timeout. We should probably remove the timeout policy completely and instead just configure the timeout used for HttpClient.

We could also use this opportunity to refactor TimeoutInSeconds into a TimeSpan Timeout which would be more consistent with other such settings in .NET.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions