-
Notifications
You must be signed in to change notification settings - Fork 32
Treat client FIN as request aborted #38
Comments
WebListener and ASP.NET 4 use HttpWaitForDisconnectEx for this: https://msdn.microsoft.com/en-us/library/windows/desktop/mt786505(v=vs.85).aspx |
@pan-wang @shirhatti This needs to be fixed for SignalR to function properly and other scenarios... |
Any action on this front? |
This is preventing us from cleanly cancelling long running requests when the client aborts. |
Per triage: We'll need to schedule a meeting to decide the behavior we want for 2.1 timeline. |
Any news on it? Will this be fixed in 2.1? |
Removing from preview2 (this repo is not used anyway) |
@shirhatti @pan-wang @jkotalik we need this in ANCM. What's the cost here? |
My understanding (and please correct me if I'm wrong) is that this issue is keeping applications that use IIS as a reverse proxy from being able to properly cancel requests even though this issue was fixed in Kestrel 2.x (issue here). With that presumption in mind:
I have an SO question open as well: https://stackoverflow.com/questions/50110101/kestrel-iis-reverse-proxy-requestaborted-not-triggered Any input you have would be greatly appreciated. |
Issue is there for 2.1 release version as well. |
Supposing this gets fixed in an upcoming release, because it is in the ANCM, will sites that use the RequestAborted token hosted in an Azure App Service automatically start working after IIS is updated? |
Will this issue be fixed for final 2.2 release? |
…ress Know bug that will probably never be fixed: aspnet/AspNetCoreModule#38
One more vote in favor of fixing this. There's no point in having RequestAborted if it's not dependable, and this affects both "hitting F5 in Visual Studio [IIS Express]" as well as "hosting the app where Microsoft would rather I host it [Azure App Service]". |
Another vote from my side. I was really surprised that such an essential behavior is not working. The whole cancellation chain within an application becomes irrelevant without somebody initiating a cancel. I think anyhow that this repository is dead and issues in here do not get the necessary attention from the team as it should. In the main repository you would not get changed like that without feedback. If @muratg and @shirhatti agree, I would recommend to close the issue here and move it to aspnet/AspNetCore. If there is no response in a while, I will simply give it a shot and see what the guys at the main repo say. |
As of .NET Core 2.2 this is not true. Here's a link |
@ti82 You are right, looks like my statement was based on outdated information. Sorry about that. I striked-out this statement in my previous post. Nevertheless I think it does not change the problem that the ANCM does not report a aborted/closed connection further. I am working on a fresh ASP.net core 2.2 project with the AspNetCoreHostingModel set to InProcess and was suffering of this issue. Thats why I ultimately arrived here after reading tons of StackOverflow posts. |
For context, see aspnet/KestrelHttpServer#1139
Once the change is made for the issue above, ANCM needs to be updated so Kestrel will have the same behavior when running behind IIS. Right now client FINs are not forwarded to Kestrel by ANCM.
cc @Tratcher
The text was updated successfully, but these errors were encountered: