开发者

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

开发者 https://www.devze.com 2022-12-25 18:26 出处:网络
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 processi

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

精彩评论

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

关注公众号