From f88471686c0f6e58627243ae6998f3208d033d60 Mon Sep 17 00:00:00 2001 From: Jamiras Date: Thu, 3 Sep 2026 16:54:35 -0600 Subject: [PATCH] add WSAECONNRESET to retryable error codes --- src/services/impl/WindowsHttpRequester.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/impl/WindowsHttpRequester.cpp b/src/services/impl/WindowsHttpRequester.cpp index 84229ac2..ac2c4bf8 100644 --- a/src/services/impl/WindowsHttpRequester.cpp +++ b/src/services/impl/WindowsHttpRequester.cpp @@ -291,13 +291,15 @@ bool WindowsHttpRequester::IsRetryable(unsigned int nStatusCode) const noexcept case 0: // Not attempted case HTTP_STATUS_OK: // Success case ERROR_INTERNET_TIMEOUT: // Timeout - case ERROR_INTERNET_NAME_NOT_RESOLVED: // DNS lookup failed + case ERROR_INTERNET_NAME_NOT_RESOLVED: // DNS lookup failed (HTTP level) + case WSATRY_AGAIN: // DNS lookup failed (socket level) case ERROR_INTERNET_OPERATION_CANCELLED: // Handle closed before request complete case ERROR_INTERNET_INCORRECT_HANDLE_STATE: // Handle not initialized case ERROR_INTERNET_ITEM_NOT_FOUND: // Data not available at this time case ERROR_INTERNET_CANNOT_CONNECT: // Handshake failed case ERROR_INTERNET_CONNECTION_ABORTED: // Connection aborted - case ERROR_INTERNET_CONNECTION_RESET: // Connection reset + case ERROR_INTERNET_CONNECTION_RESET: // Connection reset (HTTP level) + case WSAECONNRESET: // Connection reset (socket level) case ERROR_INTERNET_FORCE_RETRY: // Explicit request to retry case ERROR_HTTP_INVALID_SERVER_RESPONSE: // Response could not be parsed, corrupt? case ERROR_INTERNET_DISCONNECTED: // Lost connection during request