Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 355
Salamander2007 Avatar asked Feb 02 '26 04:02

Salamander2007


1 Answers

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

like image 126
Dean Harding Avatar answered Feb 03 '26 21:02

Dean Harding



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!