Salamander2007
Salamander2007

Reputation: 6394

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, 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?

Upvotes: 3

Views: 781

Answers (1)

Dean Harding
Dean Harding

Reputation: 72668

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

Upvotes: 2

Related Questions