From 740a06dd61b72e753fc3c7a183f13e9d396ae38c Mon Sep 17 00:00:00 2001 From: Swaroop Sridhar Date: Fri, 9 Aug 2019 14:00:02 -0700 Subject: [PATCH] HostWriter: Update Retry-count (dotnet/core-setup#7654) Update Retry counters in HostWriter to match the retry numbers in AppHost. Commit migrated from https://github.com/dotnet/core-setup/commit/98b76e058ed209f98e56627da08afb032d22a0a4 --- src/installer/managed/Microsoft.NET.HostModel/AppHost/HostWriter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installer/managed/Microsoft.NET.HostModel/AppHost/HostWriter.cs b/src/installer/managed/Microsoft.NET.HostModel/AppHost/HostWriter.cs index c1eaf47..d4db129 100644 --- a/src/installer/managed/Microsoft.NET.HostModel/AppHost/HostWriter.cs +++ b/src/installer/managed/Microsoft.NET.HostModel/AppHost/HostWriter.cs @@ -31,7 +31,7 @@ namespace Microsoft.NET.HostModel.AppHost /// The action to retry on IO-Error private static void RetryOnIOError(Action func) { - uint numberOfRetries = 256; + uint numberOfRetries = 500; for (uint i = 1; i <= numberOfRetries; i++) { @@ -42,7 +42,7 @@ namespace Microsoft.NET.HostModel.AppHost } catch (IOException) when (i < numberOfRetries) { - Thread.Sleep(200); + Thread.Sleep(100); } } } -- 2.7.4