From aceeeca08c9db33eb027618d310377fa3a4f8cff Mon Sep 17 00:00:00 2001 From: wtgodbe Date: Wed, 18 Oct 2023 16:02:04 -0700 Subject: [PATCH] Revert "Fixup pRequestInfo after GCs (#50447)" This reverts commit bc60047c33de2e6d534151b8c41be077f53417ab. --- src/Shared/HttpSys/RequestProcessing/NativeRequestContext.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Shared/HttpSys/RequestProcessing/NativeRequestContext.cs b/src/Shared/HttpSys/RequestProcessing/NativeRequestContext.cs index c4475d5eb5a5..51e734bf504a 100644 --- a/src/Shared/HttpSys/RequestProcessing/NativeRequestContext.cs +++ b/src/Shared/HttpSys/RequestProcessing/NativeRequestContext.cs @@ -553,12 +553,9 @@ private IReadOnlyDictionary> GetRequestInfo(IntPtr bas var info = new Dictionary>(count); - long fixup = (byte*)nativeRequest - (byte*)baseAddress; - var pRequestInfo = (HttpApiTypes.HTTP_REQUEST_INFO*)((byte*)nativeRequest->pRequestInfo + fixup); - for (var i = 0; i < count; i++) { - var requestInfo = pRequestInfo[i]; + var requestInfo = nativeRequest->pRequestInfo[i]; var offset = (long)requestInfo.pInfo - (long)baseAddress; info.Add( (int)requestInfo.InfoType,