Skip to content

WebRequest hard timeout #344

Open
@cdalexndr

Description

@cdalexndr

Currently, setting timeout is unreliable, the whole request time could exceed the set timeout (connect, redirects, etc all using same timeout value).

A method for setting hard request timeout should be provided, so that a request can be reliably terminated in a timeout window.

Example implementation: https://www.baeldung.com/httpclient-timeout#hard_timeout
Note that the above implementation example is for a single request. Each redirect request will reduce the available timeout for that request so that all requests are completed/terminated in the set timeout.

P.S.: after this feature, the original timeout value could be split into connection and socket timeouts to reflect actual usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions