This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Description
Following the investigation in aspnet/HttpAbstractions#766.
While I am able upload a 4GB file when running on Kestrel only, trying to upload such a file while running in IIS fails. When I examined the logs, I see
dbug: Microsoft.AspNetCore.Server.Kestrel[19]
Connection id "0HL30U3770MSD" reset.
dbug: Microsoft.AspNetCore.Server.Kestrel[10]
Connection id "0HL30U3770MSD" disconnecting.
dbug: Microsoft.AspNetCore.Server.Kestrel[2]
Connection id "0HL30U3770MSD" stopped.
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
Executed action FileUploadRepro.Controllers.StreamingController.Upload (FileUploadRepro) in 148486.9945ms
Seems like ANCM is resetting the connection but I'm not sure why. Note that to reproduce this issue, I turned off Request Filtering since the request allowed content length is bounded by the max value of unsigned int.
Is this expected for ANCM? Is there a hard limit on request size?
I have attached the repro project I was testing with at https://github.com/JunTaoLuo/FileUploadRepro. It mostly follows our documentation sample for file upload at https://docs.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads.
cc @pan-wang @Tratcher