Skip to content

CurlConnection::ReadFromSocket uses fixed 60s timeout instead of using configured timeout from HttpResponseTimeout #6812

@nobodo

Description

@nobodo

Calling GET endpoint that takes more than 60s to respond, results to "Timeout waiting for socket to read." error.

There is a fixed timeout when waiting for the socket in curl.cpp:

    // start polling operation                                                                                                                
    auto pollUntilSocketIsReady = pollSocketUntilEventOrTimeout(
        context, m_curlSocket, PollSocketDirection::Read, 60000L);

It would be better to have this configurable, for example from the context HttpResponseTimeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions