Skip to content

Commit

Permalink
Revert "Fixup pRequestInfo after GCs (#50448)"
Browse files Browse the repository at this point in the history
This reverts commit 0a51ea1.
  • Loading branch information
wtgodbe committed Oct 18, 2023
1 parent 3509fd7 commit 8306e5d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Shared/HttpSys/RequestProcessing/NativeRequestContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,9 @@ private IReadOnlyDictionary<int, ReadOnlyMemory<byte>> GetRequestInfo(IntPtr bas

var info = new Dictionary<int, ReadOnlyMemory<byte>>(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,
Expand Down

0 comments on commit 8306e5d

Please sign in to comment.