Skip to content

Commit 5d3f955

Browse files
authored
fix possible endless loop while polling curl socket (#5589)
1 parent d41af3f commit 5d3f955

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • sdk/core/azure-core/src/http/curl

sdk/core/azure-core/src/http/curl/curl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ int pollSocketUntilEventOrTimeout(
161161
result = poll(&poller, 1, pollTimeoutMs);
162162
if (result < 0 && EINTR == errno)
163163
{
164+
now = std::chrono::steady_clock::now();
164165
continue;
165166
}
166167
#elif defined(AZ_PLATFORM_WINDOWS)

0 commit comments

Comments
 (0)