开发者

What will happened to server request if client suddenly close it's connection

If I have a page that takes some amount of time to process, and suddenly the client closes it's connection (network disconnect, b开发者_开发技巧rowser 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜