AccessViolationException in IIS in-proc request cleanup #20796
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
bug
This issue describes a behavior which is not expected - a bug.
Done
This issue has been fixed
feature-iis
Includes: IIS, ANCM
Milestone
ASP.NET 5.0 Blazor Server app with ApplicationInsights frequently crashes while accessing request data from
HostingApplication.DisposeContext
. @DamianEdwardsThe IIS call is here:
aspnetcore/src/Servers/IIS/IIS/src/Core/IISHttpContextOfT.cs
Lines 100 to 109 in b463e04
It looks like it needs to re-order PostCompletion and DisposeContext.
Also it looks like this was a 5.0 regression in https://github.com/dotnet/aspnetcore/pull/17756/files. Fixing it is going to re-introduce the latency issue we were trying to fix.
We don't think HttpSys is affected despite some shared code, it doesn’t clean up the buffer until after DisposeContext:
aspnetcore/src/Servers/HttpSys/src/MessagePump.cs
Lines 222 to 223 in 8109690
The text was updated successfully, but these errors were encountered: