Skip to content

Commit

Permalink
Revert "Fixup pRequestInfo after GCs (#50447)"
Browse files Browse the repository at this point in the history
This reverts commit bc60047.
  • Loading branch information
wtgodbe committed Oct 18, 2023
1 parent cf6e3fa commit aceeeca
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 @@ -553,12 +553,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 aceeeca

Please sign in to comment.