收录日期:2021/01/26 15:49:22 时间:2010-03-31 05:57:01 标签:asp.net,iis

If I have a page that takes some amount of time to process, and suddenly the client closes it's connection (network disconnect, browser closed, etc), what will happened to the processing operation on the server side? Is it get canceled automatically or it continues to process, and then stop right before rendering?

It continues processing until something notices that the client has disconnected and calls Response.End(). You can check yourself with the Response.IsClientConnected property.