Skip to content

httpjson: support configurable response_timeout #1650

Closed
@gam-phon

Description

There is no configurable response_timeout in httpjson input. I have an endpoint that takes more than the default timeout to response.

Here is the default response_timeout, which is hard coded, for httpjson:

        tr := &http.Transport{
            ResponseHeaderTimeout: time.Duration(3 * time.Second),
            TLSClientConfig:       tlsCfg,
        }
        client := &http.Client{
            Transport: tr,
            Timeout:   time.Duration(4 * time.Second),
        }

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