azure-sdk-for-cpp icon indicating copy to clipboard operation
azure-sdk-for-cpp copied to clipboard

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

Open nobodo opened this issue 3 months ago • 0 comments

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.

nobodo avatar Oct 30 '25 14:10 nobodo