ASP.NET Request.Form Performance

前端 未结 3 1326
情深已故
情深已故 2020-12-29 12:13

I used a HttpHandler to implement a light-weight web service targeted for high performance. It requires a POST with content-type application

3条回答
  •  一个人的身影
    2020-12-29 12:32

    MgdSyncReadRequest method blocked inner unmanaged-IIS API. But raised managed ThreadAbortException.
    That means another managed thread may be call Thread.Abort().

    I searched referencesource, got it "RequestTimeoutManager":

    http://referencesource.microsoft.com/#System.Web/RequestTimeoutManager.cs,177

    thread.Abort(new HttpApplication.CancelModuleException(true));
    

    Solution (not inspect, may be): Implements by async-based reader, and handle time-out manually...

提交回复
热议问题