From f8d7c8a356fd22444e72fa3d1ace3dec51535963 Mon Sep 17 00:00:00 2001 From: Chris R Date: Fri, 14 Feb 2020 09:06:46 -0800 Subject: [PATCH 1/2] Sync script changes from the runtime repo #18943 --- src/Shared/runtime/CopyToAspNetCore.cmd | 5 +++-- src/Shared/runtime/CopyToRuntime.cmd | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Shared/runtime/CopyToAspNetCore.cmd b/src/Shared/runtime/CopyToAspNetCore.cmd index 43eb68178744..65a341b3cc2f 100644 --- a/src/Shared/runtime/CopyToAspNetCore.cmd +++ b/src/Shared/runtime/CopyToAspNetCore.cmd @@ -10,5 +10,6 @@ IF [%remote_repo%] == [] ( echo ASPNETCORE_REPO: %remote_repo% -robocopy . %remote_repo%\src\Shared\runtime /MIR -robocopy .\..\..\..\..\..\tests\Tests\System\Net\aspnetcore\ %remote_repo%\src\Shared\test\Shared.Tests\runtime /MIR +REM https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code +(robocopy . %remote_repo%\src\Shared\runtime /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0 +(robocopy .\..\..\..\..\..\tests\Tests\System\Net\aspnetcore\ %remote_repo%\src\Shared\test\Shared.Tests\runtime /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0 diff --git a/src/Shared/runtime/CopyToRuntime.cmd b/src/Shared/runtime/CopyToRuntime.cmd index 7f9e5b126c5c..f1cb32df8501 100644 --- a/src/Shared/runtime/CopyToRuntime.cmd +++ b/src/Shared/runtime/CopyToRuntime.cmd @@ -10,5 +10,6 @@ IF [%remote_repo%] == [] ( echo RUNTIME_REPO: %remote_repo% -robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\aspnetcore /MIR -robocopy .\..\test\Shared.Tests\runtime %remote_repo%\src\libraries\Common\tests\Tests\System\Net\aspnetcore /MIR +REM https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code +(robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\aspnetcore /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0 +(robocopy .\..\test\Shared.Tests\runtime %remote_repo%\src\libraries\Common\tests\Tests\System\Net\aspnetcore /MIR) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0 From 3bd63f59e9af457bd6d2a0a6e8b8f61f8e589516 Mon Sep 17 00:00:00 2001 From: Chris R Date: Fri, 14 Feb 2020 10:42:14 -0800 Subject: [PATCH 2/2] Additional change --- src/Shared/runtime/Http3/QPack/QPackDecoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs index dfde4876f743..6f63d66ce9df 100644 --- a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs +++ b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs @@ -224,7 +224,7 @@ private void OnByte(byte b, IHttpHeadersHandler handler) } break; case State.CompressedHeaders: - switch (BitOperations.LeadingZeroCount(b) - 24) + switch (BitOperations.LeadingZeroCount(b) - 24) // byte 'b' is extended to uint, so will have 24 extra 0s. { case 0: // Indexed Header Field prefixInt = IndexedHeaderFieldPrefixMask & b;