azure-sdk-for-cpp
azure-sdk-for-cpp copied to clipboard
CurlConnection::ReadFromSocket uses fixed 60s timeout instead of using configured timeout from HttpResponseTimeout
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.