tags:

views:

24

answers:

3

Hi,

I wonder what happens if the user closes his/her browser while a called business service method is still processing? Does it keep going working without being aware whether the user has his session closed or not? Or the process suddenly stops?

Thanks.

A: 

The server is not aware of the actions of the browser. So your business layer will keep on processing.

Hans Kesting
+1  A: 

It will continue to process and return the response when it's done. If the browser is closed the response is simply dropped when it is received by the clients PC.

cottsak
Wouldn't it crash when it writes to a closed stream?
vava
Not immediately i don't think. The stream would either time out or 'buffer out' - ie. it might throw an exception when the buffer was empty and it was expecting another 'continue' request from the client. Not really sure.
cottsak
A: 

I reinforce the point by mispronouncing the name of those who say that very thing, and smile as they bristle. Not important??? Is it better or worse that repeated viewings only reinforce your views?

mijmnyoe