Fix waitforsocket usage when receiving from socket (#453)

This commit is contained in:
Victor Vazquez 2020-08-14 09:03:54 -07:00 committed by GitHub
parent 069e359562
commit 311902fe25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,7 +538,7 @@ int64_t CurlSession::ReadSocketToBuffer(uint8_t* buffer, int64_t bufferSize)
switch (readResult)
{
case CURLE_AGAIN:
if (!WaitForSocketReady(this->m_curlSocket, 0, 60000L))
if (!WaitForSocketReady(this->m_curlSocket, 1, 60000L))
{
// TODO: Change this to somehing more relevant
throw Azure::Core::Http::TransportException(